Skip to content

Commit

Permalink
update docs more
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Apr 28, 2023
1 parent 0493a95 commit ad145a5
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
63 changes: 63 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,69 @@ git checkout mybranch
./bench.sh compare main mybranch
```

This produces results like:

```shell
Comparing main and mybranch
--------------------
Benchmark tpch.json
--------------------
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ main ┃ mybranch ┃ Change ┃
┑━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
β”‚ QQuery 1 β”‚ 2520.52ms β”‚ 2795.09ms β”‚ 1.11x slower β”‚
β”‚ QQuery 2 β”‚ 222.37ms β”‚ 216.01ms β”‚ no change β”‚
β”‚ QQuery 3 β”‚ 248.41ms β”‚ 239.07ms β”‚ no change β”‚
β”‚ QQuery 4 β”‚ 144.01ms β”‚ 129.28ms β”‚ +1.11x faster β”‚
β”‚ QQuery 5 β”‚ 339.54ms β”‚ 327.53ms β”‚ no change β”‚
β”‚ QQuery 6 β”‚ 147.59ms β”‚ 138.73ms β”‚ +1.06x faster β”‚
β”‚ QQuery 7 β”‚ 605.72ms β”‚ 631.23ms β”‚ no change β”‚
β”‚ QQuery 8 β”‚ 326.35ms β”‚ 372.12ms β”‚ 1.14x slower β”‚
β”‚ QQuery 9 β”‚ 579.02ms β”‚ 634.73ms β”‚ 1.10x slower β”‚
β”‚ QQuery 10 β”‚ 403.38ms β”‚ 420.39ms β”‚ no change β”‚
β”‚ QQuery 11 β”‚ 201.94ms β”‚ 212.12ms β”‚ 1.05x slower β”‚
β”‚ QQuery 12 β”‚ 235.94ms β”‚ 254.58ms β”‚ 1.08x slower β”‚
β”‚ QQuery 13 β”‚ 738.40ms β”‚ 789.67ms β”‚ 1.07x slower β”‚
β”‚ QQuery 14 β”‚ 198.73ms β”‚ 206.96ms β”‚ no change β”‚
β”‚ QQuery 15 β”‚ 183.32ms β”‚ 179.53ms β”‚ no change β”‚
β”‚ QQuery 16 β”‚ 168.57ms β”‚ 186.43ms β”‚ 1.11x slower β”‚
β”‚ QQuery 17 β”‚ 2032.57ms β”‚ 2108.12ms β”‚ no change β”‚
β”‚ QQuery 18 β”‚ 1912.80ms β”‚ 2134.82ms β”‚ 1.12x slower β”‚
β”‚ QQuery 19 β”‚ 391.64ms β”‚ 368.53ms β”‚ +1.06x faster β”‚
β”‚ QQuery 20 β”‚ 648.22ms β”‚ 691.41ms β”‚ 1.07x slower β”‚
β”‚ QQuery 21 β”‚ 866.25ms β”‚ 1020.37ms β”‚ 1.18x slower β”‚
β”‚ QQuery 22 β”‚ 115.94ms β”‚ 117.27ms β”‚ no change β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
--------------------
Benchmark tpch_mem.json
--------------------
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query ┃ main ┃ mybranch ┃ Change ┃
┑━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
β”‚ QQuery 1 β”‚ 2182.44ms β”‚ 2390.39ms β”‚ 1.10x slower β”‚
β”‚ QQuery 2 β”‚ 181.16ms β”‚ 153.94ms β”‚ +1.18x faster β”‚
β”‚ QQuery 3 β”‚ 98.89ms β”‚ 95.51ms β”‚ no change β”‚
β”‚ QQuery 4 β”‚ 61.43ms β”‚ 66.15ms β”‚ 1.08x slower β”‚
β”‚ QQuery 5 β”‚ 260.20ms β”‚ 283.65ms β”‚ 1.09x slower β”‚
β”‚ QQuery 6 β”‚ 24.24ms β”‚ 23.39ms β”‚ no change β”‚
β”‚ QQuery 7 β”‚ 545.87ms β”‚ 653.34ms β”‚ 1.20x slower β”‚
β”‚ QQuery 8 β”‚ 147.48ms β”‚ 136.00ms β”‚ +1.08x faster β”‚
β”‚ QQuery 9 β”‚ 371.53ms β”‚ 363.61ms β”‚ no change β”‚
β”‚ QQuery 10 β”‚ 197.91ms β”‚ 190.37ms β”‚ no change β”‚
β”‚ QQuery 11 β”‚ 197.91ms β”‚ 183.70ms β”‚ +1.08x faster β”‚
β”‚ QQuery 12 β”‚ 100.32ms β”‚ 103.08ms β”‚ no change β”‚
β”‚ QQuery 13 β”‚ 428.02ms β”‚ 440.26ms β”‚ no change β”‚
β”‚ QQuery 14 β”‚ 38.50ms β”‚ 27.11ms β”‚ +1.42x faster β”‚
β”‚ QQuery 15 β”‚ 101.15ms β”‚ 63.25ms β”‚ +1.60x faster β”‚
β”‚ QQuery 16 β”‚ 171.15ms β”‚ 142.44ms β”‚ +1.20x faster β”‚
β”‚ QQuery 17 β”‚ 1885.05ms β”‚ 1953.58ms β”‚ no change β”‚
β”‚ QQuery 18 β”‚ 1549.92ms β”‚ 1914.06ms β”‚ 1.23x slower β”‚
β”‚ QQuery 19 β”‚ 106.53ms β”‚ 104.28ms β”‚ no change β”‚
β”‚ QQuery 20 β”‚ 532.11ms β”‚ 610.62ms β”‚ 1.15x slower β”‚
β”‚ QQuery 21 β”‚ 723.39ms β”‚ 823.34ms β”‚ 1.14x slower β”‚
β”‚ QQuery 22 β”‚ 91.84ms β”‚ 89.89ms β”‚ no change β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```


# Benchmark Descriptions:
Expand Down
13 changes: 13 additions & 0 deletions benchmarks/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,19 @@ compare_benchmarks() {
fi

echo "Comparing ${BRANCH1} and ${BRANCH2}"
BASE_RESULTS_DIR="${SCRIPT_DIR}/results"
for bench in `ls ${BASE_RESULTS_DIR}/${BRANCH1}` ; do
RESULTS_FILE1="${BASE_RESULTS_DIR}/${BRANCH1}/${bench}"
RESULTS_FILE2="${BASE_RESULTS_DIR}/${BRANCH2}/${bench}"
if test -f "${RESULTS_FILE2}" ; then
echo "--------------------"
echo "Benchmark ${bench}"
echo "--------------------"
python3 "${SCRIPT_DIR}"/compare.py "${RESULTS_FILE1}" "${RESULTS_FILE2}"
else
echo "Note: Skipping ${RESULTS_FILE1} as ${RESULTS_FILE2} does not exist"
fi
done

}

Expand Down

0 comments on commit ad145a5

Please sign in to comment.