Skip to content

Commit 8a1e949

Browse files
committed
collect instead of force, sf_large
1 parent 0f43be3 commit 8a1e949

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object Benchmark {
4646
var numPartitions = 2 * spark.sparkContext
4747
.getConf
4848
.getInt("spark.executor.instances", 2)
49-
var size = "sf_small"
49+
var size = "sf_large"
5050

5151
def dataDir: String = {
5252
if (System.getenv("SPARKSGX_DATA_DIR") == null) {
@@ -97,7 +97,7 @@ object Benchmark {
9797
this.numPartitions = numPartitions.toInt
9898
}
9999
case Array("--size", size: String) => {
100-
val supportedSizes = Set("sf_small")
100+
val supportedSizes = Set("sf_small", "sf_large")
101101
if (supportedSizes.contains(size)) {
102102
this.size = size
103103
} else {

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,15 @@ object TPCHBenchmark {
3131
"query" -> s"TPC-H $queryNumber",
3232
"system" -> Insecure.name) {
3333

34-
val df = tpch.performQuery(sqlStr, Insecure)
35-
Utils.force(df)
36-
df
34+
tpch.performQuery(sqlStr, Insecure).collect
3735
}
3836

3937
Utils.timeBenchmark(
4038
"distributed" -> (numPartitions > 1),
4139
"query" -> s"TPC-H $queryNumber",
4240
"system" -> Encrypted.name) {
4341

44-
val df = tpch.performQuery(sqlStr, Encrypted)
45-
Utils.force(df)
46-
df
42+
tpch.performQuery(sqlStr, Encrypted).collect
4743
}
4844
}
4945

0 commit comments

Comments
 (0)