nushell/benches
Reilly Wood a9bdc655c1
Add benchmarks for evaluating default env+config (#7688)
A quick follow-up to https://github.com/nushell/nushell/pull/7686. This
adds benchmarks for evaluating `default_env.nu` and `default_config.nu`,
because evaluating config takes up the lion's share of Nushell's startup
time. The benchmarks will help us speed up Nu's startup and test
execution.

```
eval default_env.nu     time:   [4.2417 ms 4.2596 ms 4.2780 ms]
...
eval default_config.nu  time:   [1.9362 ms 1.9439 ms 1.9523 ms]
```
2023-01-05 14:14:58 -08:00
..
encoder_benchmark.rs Add Criterion benchmarks for parser (#7686) 2023-01-05 11:39:54 -08:00
eval_benchmark.rs Add benchmarks for evaluating default env+config (#7688) 2023-01-05 14:14:58 -08:00
parser_benchmark.rs Add Criterion benchmarks for parser (#7686) 2023-01-05 11:39:54 -08:00
README.md Add Criterion benchmarks for parser (#7686) 2023-01-05 11:39:54 -08:00

Criterion benchmarks

These are benchmarks using Criterion, a microbenchmarking tool for Rust.

Run all benchmarks with cargo bench

Or run individual benchmarks like cargo bench -- <regex> e.g. cargo bench -- parse