Crates.io | termbench |
lib.rs | termbench |
version | 0.1.1 |
created_at | 2025-07-03 20:41:59.484303+00 |
updated_at | 2025-07-03 20:41:59.484303+00 |
description | Terminal emulators benchmark |
homepage | |
repository | https://github.com/khulnasoft-lab/starterm |
max_upload_size | |
id | 1736947 |
size | 549,681 |
termbench
is a fast, scriptable benchmarking tool focused on measuring PTY read performance in terminal emulators โ perfect for comparing how different terminals handle massive streams of output.
This benchmark does not provide a complete overview of terminal performance. It only evaluates how quickly a terminal reads from the PTY, and does not consider:
๐ Do not draw broad conclusions from these results unless you're familiar with how PTY internals work.
To run all default benchmarks (after setting up a Rust toolchain):
cargo run --release
Benchmarks are located in the ./benchmarks/
directory and are defined as folders containing:
benchmark
โ the main executable (required)setup
โ optional executable for one-time setuptermbench
will read the stdout of each benchmark and repeat its output to ensure a meaningful sample size.
You can visualize your benchmark results using gnuplot
.
.dat
file:cargo run --release -- --dat results.dat
./gnuplot/summary.sh results.dat output.svg
./gnuplot/summary.sh *.dat output.svg
./gnuplot/detailed.sh *.dat output/
Want to contribute or test your own scenarios?
./benchmarks/
benchmark
executable (and optionally setup
)setup
executable๐ฌ Feel free to submit a pull request with useful or interesting benchmarks โ especially ones that highlight differences between terminal versions or emulators.
MIT or Apache 2.0 โ choose whichever suits you.
Originally inspired by efforts to stress-test terminal performance in real-world workloads.
Built with ๐ by the StarTerm team.