Skip to content

Commit

Permalink
Update demo to work with the latest MLOS (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
motus authored Oct 10, 2024
1 parent 32b38ca commit cdce8d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ For this demo, we will be using Github's Codespaces feature to provide a pre-con
```sh
# Download the previously generated results database.
test -f mlos_bench.sqlite || wget -Nc https:///mlospublic.z13.web.core.windows.net/sqlite-autotuning/mlos_bench.sqlite
test -f mlos_bench.sqlite || wget -Nc https://mlospublic.z13.web.core.windows.net/sqlite-autotuning/mlos_bench.sqlite
```
1. Activate the conda environment in the integrated terminal (lower panel):
Expand All @@ -184,7 +184,7 @@ For this demo, we will be using Github's Codespaces feature to provide a pre-con
```sh
mkdir -p workdir/benchbase/db.bak
wget -Nc -O workdir/benchbase/db.bak/tpcc.db https:///mlospublic.z13.web.core.windows.net/sqlite-autotuning/tpcc.db
wget -Nc -O workdir/benchbase/db.bak/tpcc.db https://mlospublic.z13.web.core.windows.net/sqlite-autotuning/tpcc.db
```
## Using `mlos_bench`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
]
},

// What metric to optimize.
"optimization_target": "90th Percentile Latency (microseconds)",
"optimization_direction": "min",
// What metrics to optimize.
"optimization_targets": {
"99th Percentile Latency (microseconds)": "min"
},

// Store data in the workdir/ folder relative to the repo root.
"workdir": "$PWD/workdir/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
]
},

// What metric to optimize.
"optimization_target": "90th Percentile Latency (microseconds)",
"optimization_direction": "min",
// What metrics to optimize.
"optimization_targets": {
"99th Percentile Latency (microseconds)": "min"
},

// Store data in the workdir/ folder relative to the repo root.
"workdir": "$PWD/workdir/",
Expand Down

0 comments on commit cdce8d9

Please sign in to comment.