comment
This commit is contained in:
parent
5c1990e4ff
commit
353dc0c873
@ -108,7 +108,7 @@ abstract class Benchmark(
|
||||
forkThread: Boolean = true) = {
|
||||
|
||||
new ExperimentStatus(executionsToRun, includeBreakdown, iterations, variations, tags,
|
||||
timeout, resultLocation, sqlContext, allTables, currentConfiguration)
|
||||
timeout, resultLocation, sqlContext, allTables, currentConfiguration, forkThread = forkThread)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -45,9 +45,9 @@ trait Benchmarkable extends Logging {
|
||||
sparkContext.setJobDescription(s"Execution: $name, $description")
|
||||
beforeBenchmark()
|
||||
val result = if (forkThread) {
|
||||
doBenchmark(includeBreakdown, description, messages)
|
||||
} else {
|
||||
runBenchmarkForked(includeBreakdown, description, messages, timeout)
|
||||
} else {
|
||||
doBenchmark(includeBreakdown, description, messages)
|
||||
}
|
||||
afterBenchmark(sqlContext.sparkContext)
|
||||
result
|
||||
|
||||
Loading…
Reference in New Issue
Block a user