-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathrun-benchmarks.sh
More file actions
executable file
·49 lines (38 loc) · 1.74 KB
/
run-benchmarks.sh
File metadata and controls
executable file
·49 lines (38 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash -xe
## Copyright 2023 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
BENCHMARK_DEVICE=$1
case "$BENCHMARK_DEVICE" in
"CPU" | "GPU")
echo "Going to run benchmarks on $BENCHMARK_DEVICE device"
;;
*)
echo "$BENCHMARK_DEVICE is not valid device, please use CPU or GPU"
exit 1
;;
esac
SOURCE_ROOT=$GITHUB_WORKSPACE
PROJECT_NAME="Open VKL"
BENCHMARK_FLAGS="--benchmark_repetitions=5 --benchmark_min_time=10"
################################# PLEASE READ ##################################
#
# Note that suites and subsuites must exist in the database _before_ attempting
# insertion of results. This is intentional! You should think carefully about
# your [suite -> subsuite -> benchmark] hierarchy and definitions. These should
# be stable over time (especially for suites and subsuites) to facilitate
# long-term comparisons.
#
# These can be inserted using the benchmark client, through the "ls"
# and "insert subsuite" commands. Ask for help if you have questions.
#
################################# PLEASE READ ###################################
SUITE_NAME="ExampleRenderers"
SUBSUITE_NAME="StructuredVolume"
SUBSUITE_REGEX="structured_regular"
./bin/vklBenchmark${BENCHMARK_DEVICE} ${BENCHMARK_FLAGS} --benchmark_filter=${SUBSUITE_REGEX} --benchmark_out=results-${SUITE_NAME}-${SUBSUITE_NAME}.json
SUBSUITE_NAME="VDBVolume"
SUBSUITE_REGEX="vdb"
./bin/vklBenchmark${BENCHMARK_DEVICE} ${BENCHMARK_FLAGS} --benchmark_filter=${SUBSUITE_REGEX} --benchmark_out=results-${SUITE_NAME}-${SUBSUITE_NAME}.json
SUBSUITE_NAME="UnstructuredVolume"
SUBSUITE_REGEX="unstructured"
./bin/vklBenchmark${BENCHMARK_DEVICE} ${BENCHMARK_FLAGS} --benchmark_filter=${SUBSUITE_REGEX} --benchmark_out=results-${SUITE_NAME}-${SUBSUITE_NAME}.json