#Benchmark
- run all benchmark
cargo bench
- run a special benchmark
cargo bench --bench bench_state_tree
- run a special benchmark with pprof (on linux)
cargo bench --bench bench_state_tree -- --profile-time=10
Notice: run benchmark with pprof on macOS show this error, linux(ubuntu) run successful
error: process didn't exit successfully: `./bench_state_tree-3daab626ee8d6834 --profile-time=10 --bench` (signal: 11, SIGSEGV: invalid memory reference)