PvpBotdocs
Help

Benchmarks

How many bots a Paper 26.2 server can take, what they cost, and how the bots did in our fight tests.

We tested on a laptop with an Intel i7-14700HX, so a typical server host will handle fewer bots. The numbers still give you a good idea of how the cost grows. Short version: the server stayed at 20 TPS with around 300 bots fighting, and nothing broke or leaked in a 10 minute fight with bots dying and respawning the whole time.

Setup

Date26 October 2026
ServerPaper 26.2 build 134, Java 25.0.3, 4 GB of memory (6 GB for the runs over 250 bots)
PvpBotThe current release
WorldFlat, no mobs, view and simulation distance 6, hard difficulty, no players online
PluginsOnly PvpBot
MachineIntel Core i7-14700HX laptop, 32 GB RAM, Windows 11

Tick times come from Paper's /mspt, averaged over 20 seconds after the bots had been running for 30. Memory is what was still in use after a full garbage collection. A tick has 50 ms to work with; go over that and TPS drops below 20.

Load

"Idle" is bots just standing around with nobody to fight. "Brawl" is every bot fighting the ones near it, with Resistance V on everyone so the count doesn't drop. They still swing, hit and take knockback like normal.

BotsIdle: MSPTIdle: worst tickIdle: memoryBrawl: MSPTBrawl: worst tickBrawl: memoryTPS
00.2 ms10.7 ms291 MB0.3 ms10.6 ms302 MB20
101.1 ms3.3 ms329 MB1.1 ms2.7 ms305 MB20
251.3 ms2.7 ms355 MB1.6 ms2.7 ms339 MB20
502.4 ms3.9 ms414 MB3.0 ms4.4 ms421 MB20
754.2 ms5.6 ms478 MB4.9 ms11.9 ms493 MB20
1006.1 ms11.0 ms556 MB7.0 ms20.1 ms595 MB20
15011.4 ms21.5 ms729 MB13.5 ms24.6 ms799 MB20
20019.1 ms29.4 ms944 MB22.2 ms25.5 ms1045 MB20
25031.8 ms46.3 ms1359 MB20
30048.8 ms59.9 ms1679 MB20
35068.8 ms83.2 ms1618 MB14.5

Each bot costs roughly 0.07 ms per tick and 3 MB of memory, and fighting is only 10 to 20% more expensive than standing still. That holds up to about 200 bots. After that every bot has more bots around it to keep track of, so the cost per bot goes up. On this machine 300 fighting bots was the limit before TPS started dropping. Memory was never the problem.

Long fight

30 bots fighting for 10 minutes with nothing keeping them alive. PvpBot removes a bot when it dies, so every 10 seconds we spawned more to get back to 30. That way bots were joining and dying the whole time, which is usually where memory leaks show up.

MinuteMSPT (1 min avg)Worst tickBots onlineMemoryDeaths so farSpawned so farErrors
13.1 ms156 ms22371 MB29500
22.2 ms138 ms29375 MB59870
32.3 ms146 ms28374 MB971210
42.1 ms133 ms26370 MB1261500
53.6 ms416 ms27413 MB1591850
62.1 ms118 ms24382 MB1892120
72.1 ms145 ms26384 MB2182420
82.2 ms152 ms28392 MB2522770
92.0 ms131 ms28391 MB2763020
102.1 ms146 ms25384 MB3083320

No errors at all, and memory stayed between 370 and 410 MB from start to finish even with 332 bots coming and going. The high worst-tick numbers are from spawning: each top-up added up to 10 bots at once, and a batch like that takes a tick of 120 to 150 ms (one took 416). The average stayed around 2 ms, and without any spawning going on the worst tick at 25 bots is under 3 ms. If you're putting a lot of bots on a live server, spawn them a few at a time.

Fight tests

These are four fights between bots that we run before every combat change, with a minimum each one has to hit. Default config.

FightResultNeeded
Two spear and mace bots, 45 s3 smashes landed2Pass
Sword and shield vs sword and shield, 45 s29 sword hits, 21% of them blocked. The bots had their shields up 63% and 72% of the time when close10 hits, 20% blockedPass
Sword and axe vs someone holding a shield up the whole time, 45 s8 shield breaks, only 2 sword swings wasted on the shield, back to the sword half a tick after a break, about 7 hits in the 5 seconds after each break4 breaks, 4 wasted swings at most, back within 4 ticks, 4.5 hitsPass
Sword and shield bot walking up to an archer 22 blocks away, 40 s22 of the 23 arrows that reached it blocked (96%), then 16 hits on the archerHalf blocked, 5 hitsPass

Every fight also checks that no bot froze up (close, ready to swing and not swinging for 3 seconds) and that PvpBot didn't throw any errors. None did.

How many bots should I run?

Up to 50 you won't notice them, that's about 3 ms a tick. 100 is around 7 ms and fine on most servers with players on. 200 is around 20 ms, which works if the rest of your server is light. Past 250 you're close to the limit even on a fast CPU, and most hosts are slower than this laptop. Plan for about 3 MB of extra memory per bot.

Running them yourself

The scripts are in PvpBot's source:

python pvpbot-paper/bench/bench.py                    # load: idle and brawl, 10 to 200 bots
python pvpbot-paper/bench/bench.py --only brawl --steps 250 300 350 400 --xmx 6G
python pvpbot-paper/bench/soak.py --bots 30 --minutes 10
python pvpbot-paper/fighttest/fighttest.py            # fight tests

Each one sets up its own test server from an unpacked Paper install (PAPER_HOME), needs an eula.txt you've accepted (EULA_FILE), and saves its results in .cache/.