Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions benchmark/benchmark.nu
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,15 @@ export def run-hyperfine [
rust_bin: string, # path to rust binary of cpp-linter (v2.x)
prev_rust_bin?: string, # path to previous commit's release build of rust binary (v2.x)
] {
# `--prepare` empties the clang-tidy result cache, so every run measures clang-tidy.
# It runs nushell's `rm`, since Windows has no `rm` command.
mut hyperfine_args = [
--shell none
--output pipe
--export-json ../benchmark.json
--export-markdown ../benchmark.md
--warmup 1
--prepare "nu --no-config-file --commands 'rm --recursive --force .cpp-linter-cache/tidy'"
--style color
--runs
]
Expand Down
Loading