Uh oh!
There was an error while loading. Please reload this page.
[SPARK-25848][SQL][TEST] Refactor CSVBenchmarks to use main method - #22845
[SPARK-25848][SQL][TEST] Refactor CSVBenchmarks to use main method#22845heary-cao wants to merge 1 commit into
Conversation
heary-cao
commented
Oct 26, 2018
dongjoon-hyun
commented
Oct 26, 2018
ok to test |
SparkQA
commented
Oct 26, 2018
Test build #98071 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 26, 2018
Test build #98074 has finished for PR 22845 at commit
|
heary-cao
commented
Oct 26, 2018
retest this please |
SparkQA
commented
Oct 27, 2018
Test build #98115 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 27, 2018
Test build #98116 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 27, 2018
Test build #98124 has finished for PR 22845 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for your contribution, @heary-cao .
But, the value seems to be manually copied. Could you run your benchmark actually?
In general, during refactoring, you should rerun the benchmark by yourself and check whether the PR doesn't create some regression.
SparkQA
commented
Oct 29, 2018
Test build #98189 has finished for PR 22845 at commit
|
There was a problem hiding this comment.
Please update without sbt usage to:
bin/spark-submit --class <this class> --jars <spark core test jar>,<spark catalyst test jar> <spark sql test jar>
There was a problem hiding this comment.
Also update the usage in description:
bin/spark-submit --class org.apache.spark.sql.execution.datasources.csv.CSVBenchmarks --jars ./core/target/spark-core_2.11-3.0.0-SNAPSHOT-tests.jar,./sql/catalyst/target/spark-catalyst_2.11-3.0.0-SNAPSHOT-tests.jar ./sql/core/target/spark-sql_2.11-3.0.0-SNAPSHOT-tests.jar004ed13 to
6d1f1f5Compareheary-cao
commented
Oct 29, 2018
retest this please |
SparkQA
commented
Oct 29, 2018
Test build #98198 has finished for PR 22845 at commit
|
There was a problem hiding this comment.
#22872 has updated runBenchmarkSuite's signature.
| overridedefrunBenchmarkSuite():Unit= { | |
| overridedefrunBenchmarkSuite(mainArgs: Array[String]):Unit= { |
SparkQA
commented
Oct 29, 2018
Test build #98195 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 30, 2018
Test build #98241 has finished for PR 22845 at commit
|
dongjoon-hyun
commented
Oct 30, 2018
Thank you for updating and rerunning the tests, @heary-cao . |
| Benchmark to measure CSV read/write performance | ||
| ================================================================================================ | ||
| OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1 |
There was a problem hiding this comment.
Wow. Did you run this on Windows 7?
heary-cao
commented
Oct 30, 2018
@dongjoon-hyun, Well, my office machine. |
SparkQA
commented
Oct 30, 2018
Test build #98254 has finished for PR 22845 at commit
|
| ================================================================================================ | ||
| OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1 | ||
| Intel64 Family 6 Model 94 Stepping 3, GenuineIntel |
There was a problem hiding this comment.
Actually, GHz is missing here. So, it's hard to figure out what CPU is used here.
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz [Family 6 Model 94 Stepping 3]
Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz [Family 6 Model 94 Stepping 3]
Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz [Family 6 Model 94 Stepping 3]
Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz [Family 6 Model 94 Stepping 3]
There was a problem hiding this comment.
This seems to be the limitation in Spark benchmark code itself (in Window environment).
There was a problem hiding this comment.
I made a PR to you. Could you review and merge heary-cao#2 ?
There was a problem hiding this comment.
In this case, the ratio change seems to be due to the improvement on count(). cc @HyukjinKwon .
There was a problem hiding this comment.
@heary-cao . Could you rename the files?
CSVBenchmarks.scala->CSVBenchmark.scalaCSVBenchmarks-results.txt->CSVBenchmark-results.txt- Line 35 should be changed together from
benchmarks/CSVBenchmarks-results.txttobenchmarks/CSVBenchmark-results.txt.
SparkQA
commented
Oct 30, 2018
Test build #98258 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 30, 2018
Test build #98259 has finished for PR 22845 at commit
|
SparkQA
commented
Oct 30, 2018
Test build #98261 has finished for PR 22845 at commit
|
dongjoon-hyun
commented
Oct 30, 2018
Thank you, @heary-cao . Merged to master. |
heary-cao
commented
Nov 1, 2018
thanks,@dongjoon-hyum |
## What changes were proposed in this pull request? use spark-submit: `bin/spark-submit --class org.apache.spark.sql.execution.datasources.csv.CSVBenchmark --jars ./core/target/spark-core_2.11-3.0.0-SNAPSHOT-tests.jar,./sql/catalyst/target/spark-catalyst_2.11-3.0.0-SNAPSHOT-tests.jar ./sql/core/target/spark-sql_2.11-3.0.0-SNAPSHOT-tests.jar` Generate benchmark result: `SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain org.apache.spark.sql.execution.datasources.csv.CSVBenchmark"` ## How was this patch tested? manual tests Closesapache#22845 from heary-cao/CSVBenchmarks. Authored-by: caoxuewen <cao.xuewen@zte.com.cn> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
use spark-submit:
bin/spark-submit --class org.apache.spark.sql.execution.datasources.csv.CSVBenchmark --jars ./core/target/spark-core_2.11-3.0.0-SNAPSHOT-tests.jar,./sql/catalyst/target/spark-catalyst_2.11-3.0.0-SNAPSHOT-tests.jar ./sql/core/target/spark-sql_2.11-3.0.0-SNAPSHOT-tests.jarGenerate benchmark result:
SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain org.apache.spark.sql.execution.datasources.csv.CSVBenchmark"How was this patch tested?
manual tests