diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bfb1e4b..30d7286 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,12 +27,12 @@ jobs: - name: Run benchmark working-directory: ./sled - run: cargo bench map | tee output.txt + run: cargo bench map | tee output.txt; cat output.txt - name: Store benchmark results - uses: benchmark-action/github-action-benchmark@v1.18.0 + uses: benchmark-action/github-action-benchmark@v1 with: tool: 'cargo' - output-file-path: ./sled/output.txt + output-file-path: sled/output.txt diff --git a/sled/Cargo.toml b/sled/Cargo.toml index 05b1557..1037fea 100644 --- a/sled/Cargo.toml +++ b/sled/Cargo.toml @@ -16,6 +16,9 @@ toml = "0.8.0" [dev-dependencies] criterion = "0.5.1" +[profile.bench] +lto = true + [[example]] name = "basic" path = "examples/basic.rs" @@ -24,3 +27,4 @@ doc-scrape-examples = true [[bench]] name = "my_benchmark" harness = false +