fp/apps/aquatic/scripts/criterion/aquatic-http-request-from-bytes.sh
CJ_Clippy 694dc89f03 git subrepo clone https://github.com/greatest-ape/aquatic ./apps/aquatic
subrepo:
  subdir:   "apps/aquatic"
  merged:   "34b45e92"
upstream:
  origin:   "https://github.com/greatest-ape/aquatic"
  branch:   "master"
  commit:   "34b45e92"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2025-02-21 19:47:41 -08:00

19 lines
475 B
Bash
Executable File

#!/bin/bash
# Run benchmark, comparing against previous result.
set -e
. ./scripts/env-native-cpu-without-avx-512
cargo bench --bench bench_request_from_bytes -- --noplot --baseline latest
read -p "Replace previous benchmark result with this one (y/N)? " answer
case ${answer:0:1} in
y|Y )
cd aquatic_http_protocol/target/criterion/request-from-bytes/ &&
rm -r latest &&
mv new latest &&
echo "Replaced previous benchmark"
;;
esac