bench: add cpu correction (#2572)

* feat: add cpu correction

* feat: add more bench

* fix: cpu correction

* chore: add comment

* fix: add unstable to tranform

* fix: comment message

* deno fmt
This commit is contained in:
Jonathan Ho
2022-11-06 00:17:43 +08:00
committed by GitHub
parent dc186589cb
commit a385176d8a
4 changed files with 126 additions and 7 deletions

View File

@@ -17,10 +17,12 @@ jobs:
# this is the performance benchmark
- name: Cache deps
run: deno cache performance/mod.ts
- name: Download sysbench
run: sudo apt-get install -y sysbench
- name: Run Benchmark
run: NO_COLOR=true deno bench --unstable -A performance/mod.ts | tee output.txt
- name: Format Benchmark Output
run: deno run -A performance/tranformOutput.ts
run: deno run --unstable -A performance/tranformOutput.ts
# this is the memory benchmark
- name: Download db from benchmark repo