Reference
Performance report (spark)
spark profiler report of sofyCore with 200 players on Paper 26.3, next to the same server without plugins. TPS, tick time, CPU and call tree.
This report comes from spark, the profiler most Minecraft servers use to measure lag. We ran two servers with the same world, the same 200 players and the same traffic: one with sofyCore and every module enabled, and one with no plugins. spark recorded each one from the empty server, through players joining and five minutes of full load, until everyone left.
During the full-load phase the players chat, send private messages and run commands, around 50 actions per second across the server.
TPS under load
20.0020.00
the same as Paper without plugins
Time per tick (median)
16.3ms+4.1ms
with every module running; 59% of every 50 ms tick stays free
Headroom before lag
24.4ms18.3ms
left even in the slowest 5% of ticks
CPU
0.8cores+0.6cores
for ranks, chat, scoreboard, boss bars, nametags, moderation and staff together
Main thread
2.0%
sofyCore's share, measured by spark
Disconnections
00
13,938 player actions without errors
Tick duration over the whole profile
Values that spark records every 10 seconds. The dashed line is the 50 ms limit before a server starts to lag.
- Profiler
- spark 1.10.196 · async sampler every 4 ms
- Server
- Paper 26.3-257-d81ca50 (MC: 26.3)
- Profiled
- 7 min 42 s · 9,221 ticks
- Players
- 200 players · 13,938 player actions · under load for 5 min
- Hardware
- AMD Ryzen 5 8600G w/ Radeon 760M Graphics · 6 CPU threads · 4 GB RAM
- Java
- Eclipse Adoptium 25.0.5
Per-minute statistics
spark groups the profile in one-minute windows. In gray, Paper without plugins; next to it, Paper + sofyCore (CPU: cores it adds).
| Minute | TPS | MSPT median | MSPT max | Players | CPU (cores) |
|---|---|---|---|---|---|
| 1 | 20.0020.00 | 0.20.3 | 1.01.5 | 00 | 0.00.1 |
| 2 | 20.0020.00 | 18.421.7 | 65.764.8 | 200200 | 1.0+0.5 |
| 3 | 20.0020.00 | 15.320.5 | 50.161.2 | 200200 | 0.8+0.5 |
| 4 | 20.0020.00 | 14.418.3 | 52.456.0 | 200200 | 0.8+0.5 |
| 5 | 20.0020.00 | 13.919.6 | 46.249.7 | 200200 | 0.7+0.5 |
| 6† | 19.8819.79 | 4.511.9 | 603.4931.4 | 00 | 0.4+0.3 |
- †The 200 players disconnect at the same moment, on both servers.
Main-thread time by source
Share of the sampled main-thread time that each plugin's code accounts for. The rest is the server itself (Paper and Minecraft), including the time it waits for the next tick.
- Server (Paper / Minecraft)97.8%
- sofyCore2.0%
- ViaVersion0.11%
- spark0.06%
- ViaBackwards0.00%
Call tree (Server thread)
Methods that take at least 0.5% of the profiled time. Click a row to expand it. "Waiting for next tick" is idle time.
Thread.run()100.0%
Thread.runWith()100.0%
0x00000000230eedd8.run()100.0%
MinecraftServer.lambda$spin$0()100.0%
MinecraftServer.runServer()100.0%
MinecraftServer.recordTaskExecutionTimeWhileWaiting()Waiting for next tick65.0%
LockSupport.parkNanos()63.7%
Unsafe.park()63.7%
so.Unsafe_Park()63.7%
so.Parker::park()63.7%
6.pthread_cond_timedwait()63.7%
- native./usr/lib/x86_64-linux-gnu/libc.so.6()63.7%
MinecraftServer.pollTask()1.3%
PacketProcessor.executeSinglePacket()0.8%
- PacketProcessor$ListenerAndPacket.handle()0.8%
- MinecraftServer.pollTaskInternal()0.5%
MinecraftServer.processPacketsAndTick()34.9%
DedicatedServer.tickServer()34.6%
MinecraftServer.tickServer()34.6%
MinecraftServer.tickChildren()34.6%
ServerLevel.tick()25.1%
ServerChunkCache.tick()21.1%
ChunkMap.tick()12.1%
ChunkMap.newTrackerTick()12.1%
ServerEntity.sendChanges()6.3%
ChunkMap$TrackedEntity.sendToTrackingPlayers()6.0%
ServerCommonPacketListenerImpl.send()6.0%
ServerCommonPacketListenerImpl.send()6.0%
Connection.send()5.9%
Connection.sendPacket()5.6%
SingleThreadEventExecutor.execute()5.6%
SingleThreadEventExecutor.execute0()5.6%
SingleThreadEventExecutor.execute()5.6%
SingleThreadIoEventLoop.wakeup()5.6%
EpollIoHandler.wakeup()5.6%
Native.eventFdWrite()5.6%
so (deleted)._init()5.6%
6.eventfd_write()5.6%
- 6.__write()5.6%
ChunkMap$TrackedEntity.moonrise$tick()5.7%
ChunkMap$TrackedEntity.updatePlayer()5.4%
CraftPlayer.canSee()2.2%
HashMap.containsKey()2.1%
- HashMap.getNode()2.1%
ChunkMap.isChunkTracked()1.3%
RegionizedPlayerChunkLoader.isChunkSent()1.3%
- LongOpenHashSet.contains()1.3%
- ReferenceOpenHashSet.add()1.1%
ServerChunkCache.tickChunks()6.9%
ServerChunkCache.tickChunks()6.9%
ServerChunkCache.tickSpawningChunk()5.2%
NaturalSpawner.spawnForChunk()5.2%
NaturalSpawner.spawnCategoryForChunk()4.3%
NaturalSpawner.spawnCategoryForPosition()4.1%
EntityGetter.getNearestPlayer()1.9%
EntityGetter.getNearestPlayer()1.9%
- Entity.distanceToSqr()0.7%
NaturalSpawner.isValidSpawnPostitionForType()1.3%
NaturalSpawner.canSpawnMobAt()0.7%
NaturalSpawner.mobsAt()0.7%
ChunkGenerator.getMobsAt()0.6%
EnvironmentAttributeReader.getValue()0.6%
EnvironmentAttributeReader.getValue()0.6%
EnvironmentAttributeSystem.getValue()0.6%
EnvironmentAttributeSystem$ValueSampler.getValue()0.6%
- EnvironmentAttributeSystem$ValueSampler.computeValuePositional()0.6%
NaturalSpawner.createState()1.2%
0x0000000023863ac8.query()0.9%
ServerChunkCache.getFullChunk()0.9%
0x00000000241e4ae0.accept()0.8%
NaturalSpawner.lambda$createState$0()0.8%
EnvironmentAttributeReader.getValue()0.7%
EnvironmentAttributeReader.getValue()0.7%
EnvironmentAttributeSystem.getValue()0.7%
EnvironmentAttributeSystem$ValueSampler.getValue()0.7%
EnvironmentAttributeSystem$ValueSampler.computeValuePositional()0.7%
0x00000000236a08c0.applyPositional()0.6%
EnvironmentAttributeSystem.lambda$addBiomeLayerForAttribute$0()0.6%
BiomeManager.getBiome()0.6%
- Level.getNoiseBiome()0.5%
ChunkMap.tick()1.1%
ChunkMap.processUnloads()1.1%
ChunkHolderManager.autoSave()1.1%
NewChunkHolder.save()1.1%
NewChunkHolder.saveEntities()1.0%
ChunkEntitySlices.save()0.9%
ChunkEntitySlices.saveEntityChunk()0.9%
ChunkEntitySlices.saveEntityChunk0()0.9%
Entity.save()0.8%
Entity.saveAsPassenger()0.8%
Entity.saveAsPassenger()0.8%
Entity.saveWithoutId()0.8%
- Entity.addAdditionalSaveData()0.5%
RegionizedPlayerChunkLoader.tick()0.9%
- RegionizedPlayerChunkLoader$PlayerChunkLoaderData.updateQueues()0.7%
EntityTickList.forEach()2.6%
0x000000002386e1b8.accept()2.6%
ServerLevel.lambda$tick$0()2.6%
Level.guardEntityTick()2.3%
0x00000000241fcb90.accept()2.3%
ServerLevel.tickNonPassenger()2.3%
ServerPlayer.tick()0.9%
- AbstractContainerMenu.broadcastChanges()0.5%
AbstractHorse.tick()0.8%
Mob.tick()0.8%
LivingEntity.tick()0.8%
AbstractHorse.aiStep()0.6%
Animal.aiStep()0.6%
AgeableMob.aiStep()0.6%
Mob.aiStep()0.5%
- LivingEntity.aiStep()0.5%
ActivationRange.activateEntities()1.3%
Level.getEntities()1.2%
EntityLookup.getEntities()1.2%
ChunkEntitySlices.getEntities()1.0%
- ChunkEntitySlices$EntityCollectionBySection.getEntities()1.0%
DedicatedServer.tickConnection()7.1%
MinecraftServer.tickConnection()7.1%
ServerConnectionListener.tick()7.1%
Connection.tick()6.8%
ServerGamePacketListenerImpl.tick()6.6%
ServerGamePacketListenerImpl.tickPlayer()6.2%
ServerPlayer.doTick()5.0%
Player.tick()4.4%
LivingEntity.tick()4.2%
Player.aiStep()3.8%
LivingEntity.aiStep()3.4%
Player.travel()2.6%
LivingEntity.travel()2.6%
LivingEntity.travelInAir()2.6%
LivingEntity.handleRelativeFrictionAndCalculateMovement()2.5%
Entity.move()2.4%
Entity.setPos()1.9%
Entity.setPos()1.9%
Entity.setPosRaw()1.9%
ServerWaypointManager.updateWaypoint()1.3%
- ImmutableSet.copyOf()0.7%
- ServerWaypointManager.updatePlayer()0.5%
Entity.absSnapTo()1.1%
Entity.absSnapTo()1.1%
Entity.setPos()1.1%
Entity.setPosRaw()1.1%
- ServerWaypointManager.updateWaypoint()0.7%
CraftScheduler.mainThreadHeartbeat()1.9%
CraftTask.run()1.8%
0x0000000023ac6758.run()sofyCore0.5%
- BukkitChatModule.a()sofyCore0.5%
Full report
The two profiles spark recorded, with every sample, so you can open them in its own viewer.
- Paper + sofyCoresofycore-paper-26.3-200-players.sparkprofile· 4.4 MBDownload profile
- Paper without pluginspaper-26.3-200-players.sparkprofile· 3.5 MBDownload profile
Download a profile and drag it into the spark viewer. You get the full report: every thread, the whole call tree, per-minute statistics and the server's memory and GC.
Open the spark viewerHow to read it
- TPS: 20 is the maximum. A server below 20 TPS has lag.
- ms per tick (MSPT): how long the server takes to process each tick. Below 50 ms the server keeps 20 TPS; the lower the value, the more headroom remains for more players, worlds and plugins.
- Main-thread time by source: how much of the work on the main thread belongs to each plugin. This is the same "Sources" view the spark viewer shows.
- Call tree: where the main thread spends its time, method by method, as spark samples it.
Measure your own server
spark comes built into Paper, so you can profile your server with sofyCore in a few seconds:
spark profiler start
# wait a few minutes with players online
spark profiler stopspark gives you a link to its viewer with the full report.