File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -52,22 +52,13 @@ jobs:
5252 run : rm -r faster_hexbytes
5353
5454 - name : Run Pytest Benchmark & Save Output
55- run : pytest -- benchmark-only --benchmark-json=benchmark.json benchmarks/
55+ run : make benchmark
5656
5757 - name : Upload Pytest Benchmark Results
5858 uses : actions/upload-artifact@v4
5959 with :
6060 name : pytest-benchmark-results
6161 path : benchmark.json
62-
63- - name : Parse Pytest Benchmark Output
64- run : python scripts/benchmark/parse_benchmark_output.py benchmark.json pytest_benchmark_results.json
65-
66- - name : Compare Pytest Benchmark Results
67- run : python scripts/benchmark/compare_benchmark_results.py pytest_benchmark_results.json pytest_benchmark_diff.json
68-
69- - name : Generate Markdown Benchmark Results
70- run : python scripts/benchmark/generate_benchmark_markdown.py
7162
7263 - name : Commit and Push Markdown Benchmark Results
7364 continue-on-error : true
Original file line number Diff line number Diff line change @@ -111,3 +111,19 @@ check-git:
111111 echo " Error: You must have a remote named 'upstream' that points to 'hexbytes'" ; \
112112 exit 1; \
113113 fi
114+
115+ benchmark : run-benchmarks benchmark-results
116+
117+ run-benchmarks :
118+ pytest --benchmark-only --benchmark-json=benchmark.json benchmarks/
119+
120+ benchmark-parse :
121+ python scripts/benchmark/parse_benchmark_output.py benchmark.json pytest_benchmark_results.json
122+
123+ benchmark-compare :
124+ python scripts/benchmark/compare_benchmark_results.py pytest_benchmark_results.json pytest_benchmark_diff.json
125+
126+ benchmark-markdown :
127+ python scripts/benchmark/generate_benchmark_markdown.py
128+
129+ benchmark-results : benchmark-parse benchmark-compare benchmark-markdown
You can’t perform that action at this time.
0 commit comments