From 45f458892feda36bc974bcbe0a3b7059ce3f80c7 Mon Sep 17 00:00:00 2001 From: Cong Liu Date: Wed, 19 Mar 2025 09:27:38 -0700 Subject: [PATCH] Move benchmark under tools --- site-src/performance/benchmark/index.md | 8 ++++---- {benchmark => tools/benchmark}/README.md | 0 {benchmark => tools/benchmark}/benchmark.ipynb | 0 .../benchmark}/download-benchmark-results.bash | 2 +- {benchmark => tools/benchmark}/requirements.txt | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename {benchmark => tools/benchmark}/README.md (100%) rename {benchmark => tools/benchmark}/benchmark.ipynb (100%) rename {benchmark => tools/benchmark}/download-benchmark-results.bash (95%) rename {benchmark => tools/benchmark}/requirements.txt (100%) diff --git a/site-src/performance/benchmark/index.md b/site-src/performance/benchmark/index.md index 445729a6..e612c49d 100644 --- a/site-src/performance/benchmark/index.md +++ b/site-src/performance/benchmark/index.md @@ -60,10 +60,10 @@ to specify what this benchmark is for. For instance, `inference-extension` or `k the script below will watch for that log line and then start downloading results. ```bash - benchmark_id='my-benchmark' ./benchmark/download-benchmark-results.bash + benchmark_id='my-benchmark' ./tools/benchmark/download-benchmark-results.bash ``` -1. After the script finishes, you should see benchmark results under `./benchmark/output/default-run/my-benchmark/results/json` folder. +1. After the script finishes, you should see benchmark results under `./tools/benchmark/output/default-run/my-benchmark/results/json` folder. ### Tips @@ -89,10 +89,10 @@ This guide shows how to run the jupyter notebook using vscode. 1. Install the dependencies. ```bash - pip install -r ./benchmark/requirements.txt + pip install -r ./tools/benchmark/requirements.txt ``` -1. Open the notebook `./benchmark/benchmark.ipynb`, and run each cell. At the end you should +1. Open the notebook `./tools/benchmark/benchmark.ipynb`, and run each cell. At the end you should see a bar chart like below: ![alt text](example-bar-chart.png) \ No newline at end of file diff --git a/benchmark/README.md b/tools/benchmark/README.md similarity index 100% rename from benchmark/README.md rename to tools/benchmark/README.md diff --git a/benchmark/benchmark.ipynb b/tools/benchmark/benchmark.ipynb similarity index 100% rename from benchmark/benchmark.ipynb rename to tools/benchmark/benchmark.ipynb diff --git a/benchmark/download-benchmark-results.bash b/tools/benchmark/download-benchmark-results.bash similarity index 95% rename from benchmark/download-benchmark-results.bash rename to tools/benchmark/download-benchmark-results.bash index 333fc6cc..6b9ca505 100755 --- a/benchmark/download-benchmark-results.bash +++ b/tools/benchmark/download-benchmark-results.bash @@ -27,4 +27,4 @@ benchmark_output_dir=${SCRIPT_DIR}/${output_dir}/${run_id}/${benchmark_id} echo "Saving benchmark results to ${benchmark_output_dir}/results/json/" download_benchmark_results -kubectl delete -f ${SCRIPT_DIR}/../config/manifests/benchmark/benchmark.yaml \ No newline at end of file +kubectl delete -f ${SCRIPT_DIR}/../../config/manifests/benchmark/benchmark.yaml \ No newline at end of file diff --git a/benchmark/requirements.txt b/tools/benchmark/requirements.txt similarity index 100% rename from benchmark/requirements.txt rename to tools/benchmark/requirements.txt