File tree 2 files changed +4
-8
lines changed
src/main/scala/edu/berkeley/cs/rise/opaque/benchmark 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ object Benchmark {
46
46
var numPartitions = 2 * spark.sparkContext
47
47
.getConf
48
48
.getInt(" spark.executor.instances" , 2 )
49
- var size = " sf_small "
49
+ var size = " sf_none "
50
50
51
51
def dataDir : String = {
52
52
if (System .getenv(" SPARKSGX_DATA_DIR" ) == null ) {
@@ -97,7 +97,7 @@ object Benchmark {
97
97
this .numPartitions = numPartitions.toInt
98
98
}
99
99
case Array (" --size" , size : String ) => {
100
- val supportedSizes = Set (" sf_small" )
100
+ val supportedSizes = Set (" sf_small" , " sf_none " )
101
101
if (supportedSizes.contains(size)) {
102
102
this .size = size
103
103
} else {
Original file line number Diff line number Diff line change @@ -31,19 +31,15 @@ object TPCHBenchmark {
31
31
" query" -> s " TPC-H $queryNumber" ,
32
32
" system" -> Insecure .name) {
33
33
34
- val df = tpch.performQuery(sqlStr, Insecure )
35
- Utils .force(df)
36
- df
34
+ tpch.performQuery(sqlStr, Insecure ).collect
37
35
}
38
36
39
37
Utils .timeBenchmark(
40
38
" distributed" -> (numPartitions > 1 ),
41
39
" query" -> s " TPC-H $queryNumber" ,
42
40
" system" -> Encrypted .name) {
43
41
44
- val df = tpch.performQuery(sqlStr, Encrypted )
45
- Utils .force(df)
46
- df
42
+ tpch.performQuery(sqlStr, Encrypted ).collect
47
43
}
48
44
}
49
45
You can’t perform that action at this time.
0 commit comments