Update guide for benchmark in README

This commit is contained in:
Soowon Jeong
2024-05-23 14:54:37 +09:00
parent 69ce8e0a8f
commit 1a57cf7b7b

View File

@@ -2,8 +2,17 @@
Lookup argument with function composition
## Benchmark
To run benchmark, run
1. To run benchmark, before running it install `flamegraph`.
```sh
cargo install flamegraph
```
In Linux, install `perf`.
2. In Linux, install `perf`. \
In Mac OS, it uses built-in dtrace.
2. Run benchmark
```sh
make bench
```
3. The result of benchmark will be stored as `flamegraph.svg` in the root.