Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cld
workloads
tpcds
Commits
8d18e40f
Commit
8d18e40f
authored
May 10, 2016
by
Jeff Rasley
Browse files
Print data location for query and also use printf for timing info
parent
468acf3b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/edu/brown/cs/systems/tpcds/spark/SparkTPCDSWorkloadGenerator.java
View file @
8d18e40f
...
...
@@ -86,7 +86,7 @@ public class SparkTPCDSWorkloadGenerator {
// Create from default settings
TPCDSSettings
settings
=
TPCDSSettings
.
createWithDefaults
();
System
.
out
.
printf
(
"Running query %s on %s dataset
$
s\n"
,
q
,
settings
.
dataFormat
,
settings
.
dataLocation
);
System
.
out
.
printf
(
"Running query %s on %s dataset
%
s\n"
,
q
,
settings
.
dataFormat
,
settings
.
dataLocation
);
SparkTPCDSWorkloadGenerator
gen
=
spinUp
(
"SparkTPCDSWorkloadGenerator"
,
settings
);
long
postLoad
=
System
.
currentTimeMillis
();
...
...
@@ -100,7 +100,7 @@ public class SparkTPCDSWorkloadGenerator {
}
long
postQ
=
System
.
currentTimeMillis
();
System
.
out
.
print
ln
(
"Load time:
"
+
(
postLoad
-
preLoad
)
+
", Query time: "
+
(
postQ
-
postLoad
)
)
;
System
.
out
.
print
f
(
"Load time:
%d, Query time: %d\n"
,
postLoad
-
preLoad
,
postQ
-
postLoad
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment