Add a full-document parse benchmark.

This commit is contained in:
Tom Alexander
2023-10-17 10:57:04 -04:00
parent 7d73eb6bd4
commit 369d3e8c50
2 changed files with 15 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ function main {
additional_flags+=(--profile "$PROFILE")
fi
(cd "$DIR/../" && cargo build --no-default-features "${additional_flags[@]}")
perf record --freq=2000 --call-graph dwarf --output="$DIR/../perf.data" "$DIR/../target/${PROFILE}/parse" "${@}"
perf record --freq=70000 --call-graph dwarf --output="$DIR/../perf.data" "$DIR/../target/${PROFILE}/parse" "${@}"
# Convert to a format firefox will read
# flags to consider --show-info