Skip to content

Commit c0ab7cf

Browse files
committed
10 scale factor
1 parent b7f8251 commit c0ab7cf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

data/tpch/synth-tpch-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm -rf tpch-dbgen
88
git clone https://github.com/electrum/tpch-dbgen
99
cd tpch-dbgen
1010
make -j$(nproc)
11-
./dbgen -vf -s 0.01
11+
./dbgen -vf -s 10
1212
mkdir -p $SPARKSGX_DATA_DIR/tpch/sf_small
1313
chmod u+r *.tbl
1414
cp *.tbl $SPARKSGX_DATA_DIR/tpch/sf_small/

src/main/scala/edu/berkeley/cs/rise/opaque/benchmark/TPCHBenchmark.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ object TPCHBenchmark {
2525
def query(queryNumber: Int, tpch: TPCH, sqlContext: SQLContext, numPartitions: Int) = {
2626
val sqlStr = tpch.getQuery(queryNumber)
2727

28-
tpch.setupViews(Insecure, numPartitions)
28+
tpch.setupViews(Encrypted, numPartitions)
2929
Utils.timeBenchmark(
3030
"distributed" -> (numPartitions > 1),
3131
"query" -> s"TPC-H $queryNumber",
32-
"system" -> Insecure.name) {
32+
"system" -> Encrypted.name) {
3333

3434
val df = tpch.performQuery(sqlContext, sqlStr)
3535
Utils.force(df)
3636
df
3737
}
3838

39-
tpch.setupViews(Encrypted, numPartitions)
39+
tpch.setupViews(Insecure, numPartitions)
4040
Utils.timeBenchmark(
4141
"distributed" -> (numPartitions > 1),
4242
"query" -> s"TPC-H $queryNumber",
43-
"system" -> Encrypted.name) {
43+
"system" -> Insecure.name) {
4444

4545
val df = tpch.performQuery(sqlContext, sqlStr)
4646
Utils.force(df)

0 commit comments

Comments
 (0)