projects
/
libdcp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Tidying.
[libdcp.git]
/
run
/
benchmark
1
#!/bin/bash
2
3
perf=0
4
if [ "$1" == "--perf" ]; then
5
perf=1
6
shift
7
fi
8
9
bm=$1
10
shift
11
if [ "$bm" == "" ]; then
12
echo "Syntax: $0 [--perf] <benchmark>"
13
exit 1
14
fi
15
16
export LD_LIBRARY_PATH=build/src
17
if [ "$perf" == "1" ]; then
18
perf stat build/benchmark/$bm "$*"
19
else
20
build/benchmark/$bm "$*"
21
fi
22