ctfhacker / random_python_rust_config_bench

Random testing of json vs manual config parsing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benchmarking Python and Rust json/config options

Generate test data

python3 gen.py

Run benchmarks

./run.sh

Results

--- PYTHON data_65536 512 ITERS ---
JSON:    11.24s (21.96ms/iter)
MANUAL:  13.37s (26.10ms/iter)
MANUAL2: 49.54s (96.76ms/iter)
--- RUST data_65536 512 ITERS ---
JSON:    7.50s (14.47265625ms/iter)
MANUAL:  7.50s (14.654296875ms/iter)

About

Random testing of json vs manual config parsing


Languages

Language:Python 59.0%Language:Rust 34.0%Language:Shell 7.1%