summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGirish Sharma <girishsharma001@gmail.com>2022-06-19 12:50:22 +0530
committerGitHub <noreply@github.com>2022-06-19 00:20:22 -0700
commit3ad408add7dbfe64273d5adc8bf070c0f8a2dd90 (patch)
treead1a06b7841e7dd629b745b988eab7f6f8109766
parent91cdb22a4bac04f95027564e1e7d4be4b0ef6037 (diff)
Fix paths to run benchmarking script (#1416)
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--extras/profiling/README.md2
-rw-r--r--extras/profiling/run.py10
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