Skip to content

Commit 6711f4b

Browse files
author
Andi Kleen
committed
Add new workloads: sqlite and smallpt
1 parent 78b121c commit 6711f4b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

workloads/SMALLPT

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
if [ ! -f smallpt.cpp ] ; then
4+
echo "Downloading smallpt and building"
5+
curl https://www.kevinbeason.com/smallpt/smallpt.txt > smallpt.cpp
6+
fi
7+
if [ ! -x smallpt ] ; then
8+
# single threaded version w/o openmp
9+
g++ -O3 -g smallpt.cpp -march=native -mtune=native -o smallpt -lm
10+
fi
11+
./smallpt

workloads/SQLITE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
echo "create table t (a integer, b integer) ; insert into t select value, value*10 from generate_series(1,10000000); select a from t where b == 10000;" | sqlite3

0 commit comments

Comments
 (0)