From 3ad408add7dbfe64273d5adc8bf070c0f8a2dd90 Mon Sep 17 00:00:00 2001 From: Girish Sharma Date: Sun, 19 Jun 2022 12:50:22 +0530 Subject: [PATCH] Fix paths to run benchmarking script (#1416) --- CONTRIBUTING.md | 2 +- extras/profiling/README.md | 2 +- extras/profiling/run.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 67e07154..0c0a0e91 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -154,7 +154,7 @@ with the master branch of your repository (or a fresh checkout of HTTPie master, `--fresh`) and report the results back. ```bash -$ python extras/benchmarks/run.py +$ python extras/profiling/run.py ``` The benchmarks can also be run on the CI. Since it is a long process, it requires manual diff --git a/extras/profiling/README.md b/extras/profiling/README.md index 0eef8166..ba496605 100644 --- a/extras/profiling/README.md +++ b/extras/profiling/README.md @@ -10,7 +10,7 @@ Ensure the following requirements are satisfied: - Python 3.7+ - `pyperf` -Then, run the `extras/benchmarks/run.py`: +Then, run the `extras/profiling/run.py`: ```console $ python extras/profiling/run.py diff --git a/extras/profiling/run.py b/extras/profiling/run.py index 86913673..d03827b0 100644 --- a/extras/profiling/run.py +++ b/extras/profiling/run.py @@ -19,19 +19,19 @@ which would include additional dependencies like pyOpenSSL. Examples: # Run everything as usual, and compare last commit with master - $ python extras/benchmarks/run.py + $ python extras/profiling/run.py # Include complex environments - $ python extras/benchmarks/run.py --complex + $ python extras/profiling/run.py --complex # Compare against a fresh copy - $ python extras/benchmarks/run.py --fresh + $ python extras/profiling/run.py --fresh # Compare against a custom branch of a custom repo - $ python extras/benchmarks/run.py --target-repo my_repo --target-branch my_branch + $ python extras/profiling/run.py --target-repo my_repo --target-branch my_branch # Debug changes made on this script (only run benchmarks once) - $ python extras/benchmarks/run.py --debug + $ python extras/profiling/run.py --debug """ import dataclasses