From 97d646cacce1ea2987508e4c26750897f0866a77 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 2 Sep 2023 13:52:05 +0300 Subject: [PATCH] Add instructions to run benchmarks --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 504a708be..b970478b2 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,21 @@ You can then start the Lig shell with: cargo run hello.db ``` +## Developing + +Run benchmarks: + +```console +cargo bench +``` + +Run benchmarks and generate flamegraphs: + +```console +echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid +cargo bench --bench benchmark -- --profile-time=5 +``` + ## License This project is licensed under the [MIT license].