valence/benchmarks
Ryan Johnson 5d3364d452
Update to 1.19.3 (#171)
Closes #165
2022-12-28 00:42:54 -08:00
..
bench_players Update to 1.19.3 (#171) 2022-12-28 00:42:54 -08:00
README.md Optimize sending tracked entity data (#163) 2022-11-30 15:55:46 -08:00

Performance Tests

Run the server

cargo r -r -p bench_players

In a separate terminal, start rust-mc-bot. This command should connect 1000 clients to the server.

# In the rust-mc-bot directory
cargo r -r -- 127.0.0.1:25565 1000

If the delta time is consistently >50ms, the server is running behind schedule.

Note:

Flamegraph

To start capturing a flamegraph, run the server like this:

# You can also try setting the `CARGO_PROFILE_RELEASE_DEBUG` environment variable to `true`.
cargo flamegraph -p bench_players

Run rust-mc-bot as above, and then stop the server after a few seconds. Flamegraph will generate a flamegraph.svg in the current directory. You can then open that file in your internet browser of choice.