Skip to content

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.

Paper without pluginsPaper + sofyCore

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.

Paper without plugins · mediansofyCore · mediansofyCore · 95th percentilePlayers
Empty serverPlayers joinFull load02550751000100200ms0 min1 min2 min3 min4 min5 min6 min7 min50 ms limitPeak: 200 players join at once0 min 6 s · sofyCore · median 0.3 ms · sofyCore · 95th percentile 0.4 ms · Paper without plugins · median 0.2 ms0 min 17 s · sofyCore · median 0.3 ms · sofyCore · 95th percentile 0.4 ms · Paper without plugins · median 0.3 ms0 min 27 s · sofyCore · median 0.3 ms · sofyCore · 95th percentile 0.4 ms · Paper without plugins · median 0.2 ms0 min 37 s · sofyCore · median 0.3 ms · sofyCore · 95th percentile 0.5 ms · Paper without plugins · median 0.2 ms0 min 47 s · sofyCore · median 0.2 ms · sofyCore · 95th percentile 0.4 ms · Paper without plugins · median 0.2 ms0 min 57 s · sofyCore · median 0.2 ms · sofyCore · 95th percentile 0.3 ms · Paper without plugins · median 0.2 ms1 min 7 s · sofyCore · median 0.3 ms · sofyCore · 95th percentile 38.1 ms · Paper without plugins · median 2.4 ms1 min 17 s · sofyCore · median 16.4 ms · sofyCore · 95th percentile 25.4 ms · Paper without plugins · median 10.7 ms1 min 27 s · sofyCore · median 14.9 ms · sofyCore · 95th percentile 25.1 ms · Paper without plugins · median 13.1 ms1 min 37 s · sofyCore · median 16.8 ms · sofyCore · 95th percentile 34.5 ms · Paper without plugins · median 16.0 ms1 min 47 s · sofyCore · median 20.3 ms · sofyCore · 95th percentile 45.4 ms · Paper without plugins · median 18.9 ms1 min 57 s · sofyCore · median 25.8 ms · sofyCore · 95th percentile 36.5 ms · Paper without plugins · median 18.0 ms2 min 7 s · sofyCore · median 21.0 ms · sofyCore · 95th percentile 34.2 ms · Paper without plugins · median 16.7 ms2 min 17 s · sofyCore · median 23.2 ms · sofyCore · 95th percentile 37.1 ms · Paper without plugins · median 18.1 ms2 min 27 s · sofyCore · median 23.2 ms · sofyCore · 95th percentile 36.3 ms · Paper without plugins · median 20.4 ms2 min 37 s · sofyCore · median 25.1 ms · sofyCore · 95th percentile 36.6 ms · Paper without plugins · median 21.8 ms2 min 47 s · sofyCore · median 21.7 ms · sofyCore · 95th percentile 35.6 ms · Paper without plugins · median 19.0 ms2 min 57 s · sofyCore · median 21.3 ms · sofyCore · 95th percentile 34.2 ms · Paper without plugins · median 19.1 ms3 min 7 s · sofyCore · median 21.0 ms · sofyCore · 95th percentile 31.7 ms · Paper without plugins · median 18.2 ms3 min 17 s · sofyCore · median 22.9 ms · sofyCore · 95th percentile 33.8 ms · Paper without plugins · median 16.8 ms3 min 27 s · sofyCore · median 20.4 ms · sofyCore · 95th percentile 33.1 ms · Paper without plugins · median 17.0 ms3 min 37 s · sofyCore · median 20.7 ms · sofyCore · 95th percentile 32.7 ms · Paper without plugins · median 18.3 ms3 min 47 s · sofyCore · median 21.4 ms · sofyCore · 95th percentile 32.8 ms · Paper without plugins · median 19.6 ms3 min 57 s · sofyCore · median 23.8 ms · sofyCore · 95th percentile 33.3 ms · Paper without plugins · median 20.5 ms4 min 7 s · sofyCore · median 22.5 ms · sofyCore · 95th percentile 33.5 ms · Paper without plugins · median 18.3 ms4 min 17 s · sofyCore · median 21.2 ms · sofyCore · 95th percentile 31.4 ms · Paper without plugins · median 14.7 ms4 min 27 s · sofyCore · median 21.6 ms · sofyCore · 95th percentile 32.2 ms · Paper without plugins · median 14.2 ms4 min 37 s · sofyCore · median 19.8 ms · sofyCore · 95th percentile 29.1 ms · Paper without plugins · median 15.7 ms4 min 47 s · sofyCore · median 21.3 ms · sofyCore · 95th percentile 31.9 ms · Paper without plugins · median 14.8 ms4 min 57 s · sofyCore · median 17.0 ms · sofyCore · 95th percentile 29.3 ms · Paper without plugins · median 15.5 ms5 min 8 s · sofyCore · median 17.7 ms · sofyCore · 95th percentile 30.9 ms · Paper without plugins · median 15.0 ms5 min 18 s · sofyCore · median 19.9 ms · sofyCore · 95th percentile 34.2 ms · Paper without plugins · median 13.2 ms5 min 28 s · sofyCore · median 19.1 ms · sofyCore · 95th percentile 29.7 ms · Paper without plugins · median 13.6 ms5 min 38 s · sofyCore · median 18.2 ms · sofyCore · 95th percentile 29.4 ms · Paper without plugins · median 15.1 ms5 min 48 s · sofyCore · median 18.1 ms · sofyCore · 95th percentile 28.5 ms · Paper without plugins · median 15.0 ms5 min 58 s · sofyCore · median 18.0 ms · sofyCore · 95th percentile 29.5 ms · Paper without plugins · median 15.3 ms6 min 8 s · sofyCore · median 17.0 ms · sofyCore · 95th percentile 28.1 ms · Paper without plugins · median 15.1 ms6 min 18 s · sofyCore · median 18.5 ms · sofyCore · 95th percentile 29.1 ms · Paper without plugins · median 13.6 ms6 min 28 s · sofyCore · median 20.0 ms · sofyCore · 95th percentile 29.6 ms · Paper without plugins · median 13.2 ms6 min 38 s · sofyCore · median 18.8 ms · sofyCore · 95th percentile 30.7 ms · Paper without plugins · median 13.7 ms6 min 48 s · sofyCore · median 22.2 ms · sofyCore · 95th percentile 30.2 ms · Paper without plugins · median 14.3 ms6 min 58 s · sofyCore · median 19.5 ms · sofyCore · 95th percentile 30.5 ms · Paper without plugins · median 14.5 ms7 min 8 s · sofyCore · median 21.0 ms · sofyCore · 95th percentile 30.3 ms · Paper without plugins · median 14.2 ms7 min 18 s · sofyCore · median 2.6 ms · sofyCore · 95th percentile 24.0 ms · Paper without plugins · median 1.9 ms7 min 28 s · sofyCore · median 0.4 ms · sofyCore · 95th percentile 2.8 ms · Paper without plugins · median 0.1 ms7 min 38 s · sofyCore · median 0.2 ms · sofyCore · 95th percentile 0.2 ms · Paper without plugins · median 0.1 ms
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).

MinuteTPSMSPT medianMSPT maxPlayersCPU (cores)
120.0020.000.20.31.01.5000.00.1
220.0020.0018.421.765.764.82002001.0+0.5
320.0020.0015.320.550.161.22002000.8+0.5
420.0020.0014.418.352.456.02002000.8+0.5
520.0020.0013.919.646.249.72002000.7+0.5
6†19.8819.794.511.9603.4931.4000.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 viewer

How 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:

Server consoleBash
spark profiler start
# wait a few minutes with players online
spark profiler stop

spark gives you a link to its viewer with the full report.