File: analyze_benchmarks.sh

package info (click to toggle)
jsonpickle 4.0.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,864 kB
  • sloc: python: 6,788; javascript: 654; makefile: 125; sh: 68
file content (20 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
DATEANDTIME=$(date +%Y-%m-%dT%T%z)

# assume user is running this cd'ed into this dir
cd ..

# we assume the user is running on Linux because I don't believe the benchmark setup works on MacOS or Windows anyway
# user will need to be willing to install `util-linux` on Ubuntu
make benchmark EXTRA_BENCH_ARGS="--benchmark-json=./benchmarking/benchmark-new.json"
# assuming the user is doing work in a different branch than main
git checkout main

make benchmark EXTRA_BENCH_ARGS="--benchmark-json=./benchmarking/benchmark-main.json"
# return to previous branch
git checkout -

cd benchmarking

pytest-benchmark compare --columns=median --name=long --sort=fullname --csv=perf --histogram=perf benchmark-main.json benchmark-new.json
python3 analyze_benchmarks.py