mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 10:40:01 +00:00
Compare commits
1 Commits
0d0edb66b8
...
cb3de779ee
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cb3de779ee |
11
.github/scripts/custom_benchmark_report.py
vendored
11
.github/scripts/custom_benchmark_report.py
vendored
@ -346,11 +346,6 @@ if __name__ == "__main__":
|
|||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Load Criterion benchmark results from JSON files and generate an HTML table with links to reports."
|
description="Load Criterion benchmark results from JSON files and generate an HTML table with links to reports."
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
"--dry-run",
|
|
||||||
action="store_true",
|
|
||||||
help="Perform a dry run without writing the HTML file.",
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--criterion-dir",
|
"--criterion-dir",
|
||||||
type=str,
|
type=str,
|
||||||
@ -377,12 +372,6 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.dry_run:
|
|
||||||
print(
|
|
||||||
"Dry run mode: No files will be written. Use --dry-run to skip writing the HTML file."
|
|
||||||
)
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
criterion_path = Path(args.criterion_dir)
|
criterion_path = Path(args.criterion_dir)
|
||||||
output_file_path = Path(args.output_file)
|
output_file_path = Path(args.output_file)
|
||||||
|
|
||||||
|
13
.github/workflows/run-benchmarks.yml
vendored
13
.github/workflows/run-benchmarks.yml
vendored
@ -33,16 +33,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- name: Install Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v5
|
|
||||||
- name: Setup venv
|
|
||||||
run: |
|
|
||||||
uv venv
|
|
||||||
uv pip install pandas
|
|
||||||
uv run .github/scripts/custom_benchmark_report.py --dry-run
|
|
||||||
|
|
||||||
- name: Run benchmarks
|
- name: Run benchmarks
|
||||||
run: cargo bench --features bench
|
run: cargo bench --features bench
|
||||||
|
|
||||||
@ -54,7 +44,8 @@ jobs:
|
|||||||
echo "No benchmark reports found, skipping custom report generation."
|
echo "No benchmark reports found, skipping custom report generation."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
uv run .github/scripts/custom_benchmark_report.py
|
pip3 install pandas
|
||||||
|
python3 .github/scripts/custom_benchmark_report.py
|
||||||
|
|
||||||
- name: Upload benchmark reports
|
- name: Upload benchmark reports
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user