Skip to content

Commit

Permalink
run compile benchmark for 2023 (#778)
Browse files Browse the repository at this point in the history
A good improvement, though this is entirely unscientific: I'm running a
better machine now than I was when I made the last benchmark.
  • Loading branch information
obmarg authored Sep 17, 2023
1 parent be37b95 commit f7fd0c9
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 57 deletions.
6 changes: 3 additions & 3 deletions tests/compile-benchmarks/bench.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

cd github-query
cargo build
cargo build
cargo build --release

GIT_SHA=$(git show -s --format=%H)
RUST_VERSION=$(rustc --version | cut -f2 -d" ")
DATE=$(date +%F)

hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.debug.json" -p "cargo clean -p queries" "cargo build -p queries"
hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.release.json" -p "cargo clean --release -p queries" "cargo build --release -p queries"
hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.debug.json" -p "cargo clean -p queries" "cargo build -p queries"
hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.release.json" -p "cargo clean --release -p queries" "cargo build --release -p queries"
177 changes: 123 additions & 54 deletions tests/compile-benchmarks/github-query/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"results": [
{
"command": "cargo build -p queries",
"mean": 3.27100157684,
"stddev": 0.0154975782731916,
"median": 3.26954712224,
"user": 3.216265,
"system": 0.25231842000000004,
"min": 3.24614587324,
"max": 3.29536862224,
"times": [
3.29168945624,
3.27228628924,
3.24614587324,
3.26873212324,
3.26901520524,
3.29536862224,
3.24970528924,
3.26878291424,
3.27821095624,
3.27007903924
],
"exit_codes": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
]
}
Loading

0 comments on commit f7fd0c9

Please sign in to comment.