You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by heary-cao <gi...@git.apache.org> on 2018/10/26 04:14:39 UTC

[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

GitHub user heary-cao opened a pull request:

    https://github.com/apache/spark/pull/22844

    [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use main method

    ## What changes were proposed in this pull request?
    
    Refactor JSONBenchmarks to use main method
    
    use spark-submit:
    bin/spark-submit --class  org.apache.spark.sql.execution.datasources.json.JSONBenchmarks --jars ./core/target/spark-core_2.11-3.0.0-SNAPSHOT-tests.jar ./sql/catalyst/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.json.JSONBenchmarks"
      
    
    ## How was this patch tested?
    
    manual tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/heary-cao/spark JSONBenchmarks

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22844.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22844
    
----
commit 937111f7f53744c8fe1a6b4fd0559643743eefae
Author: caoxuewen <ca...@...>
Date:   2018-10-26T03:52:31Z

    Refactor JSONBenchmarks to use main method

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/22844


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98120 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98120/testReport)** for PR 22844 at commit [`ff86e34`](https://github.com/apache/spark/commit/ff86e340d13c608072ff569420776c2a38d4683c).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Since this is JSON benchmark, could you merge this, @HyukjinKwon ? :)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98117 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98117/testReport)** for PR 22844 at commit [`5c05263`](https://github.com/apache/spark/commit/5c05263dcb109e11960a1760f73fc56c9d6e04e9).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98253 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98253/testReport)** for PR 22844 at commit [`4116879`](https://github.com/apache/spark/commit/411687987ec5618f23b6ba24c0c322b3aeef04bb).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by wangyum <gi...@git.apache.org>.
Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r228832524
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmarks.scala ---
    @@ -16,32 +16,30 @@
      */
     package org.apache.spark.sql.execution.datasources.json
     
    -import java.io.File
    -
    -import org.apache.spark.SparkConf
     import org.apache.spark.benchmark.Benchmark
    -import org.apache.spark.sql.{Row, SparkSession}
    -import org.apache.spark.sql.catalyst.plans.SQLHelper
    +import org.apache.spark.sql.Row
    +import org.apache.spark.sql.execution.benchmark.SqlBasedBenchmark
     import org.apache.spark.sql.functions.lit
     import org.apache.spark.sql.types._
     
     /**
      * The benchmarks aims to measure performance of JSON parsing when encoding is set and isn't.
    - * To run this:
    - *  spark-submit --class <this class> --jars <spark sql test jar>
    + * To run this benchmark:
    + * {{{
    + *   1. without sbt:
    + *      bin/spark-submit --class <this class> --jars <spark core test jar> <spark sql test jar>
    --- End diff --
    
    Also update the usage in description:
    ```console
    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.jar
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98075 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98075/testReport)** for PR 22844 at commit [`62af4fd`](https://github.com/apache/spark/commit/62af4fd4182f9b63f529efbcb51c15535e200a5b).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98193/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98192/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229376327
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    Thank you for the confirmation!


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229214337
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    Let me take a quick look within few days. This is per line basic case where many users are affected.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98120 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98120/testReport)** for PR 22844 at commit [`ff86e34`](https://github.com/apache/spark/commit/ff86e340d13c608072ff569420776c2a38d4683c).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98072 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98072/testReport)** for PR 22844 at commit [`937111f`](https://github.com/apache/spark/commit/937111f7f53744c8fe1a6b4fd0559643743eefae).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98193 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98193/testReport)** for PR 22844 at commit [`15c0893`](https://github.com/apache/spark/commit/15c08933866d7a14e28fad2afd58fb062814ce87).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98263 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98263/testReport)** for PR 22844 at commit [`422df47`](https://github.com/apache/spark/commit/422df479aae55b52e17eccf1f46675c9b7369ddd).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98192 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98192/testReport)** for PR 22844 at commit [`7d23c18`](https://github.com/apache/spark/commit/7d23c18f10e50f55f0f08116284c17cf572ed326).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98117 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98117/testReport)** for PR 22844 at commit [`5c05263`](https://github.com/apache/spark/commit/5c05263dcb109e11960a1760f73fc56c9d6e04e9).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98123 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98123/testReport)** for PR 22844 at commit [`ebef3f7`](https://github.com/apache/spark/commit/ebef3f74f45b94ef41c088352cc8310b3cf4d1cc).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229243855
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    Ah, I see. This is also because of count optimization. ratio is weird but actually it's performance improvement for both cases. shouldn't be a big deal.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r230060038
  
    --- Diff: sql/core/benchmarks/JSONBenchmark-results.txt ---
    @@ -0,0 +1,37 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 62946 / 63310          1.6         629.5       1.0X
    +UTF-8 is set                              112814 / 112866          0.9        1128.1       0.6X
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 16468 / 16553          6.1         164.7       1.0X
    +UTF-8 is set                                16420 / 16441          6.1         164.2       1.0X
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON parsing of wide lines:              Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 39789 / 40053          0.3        3978.9       1.0X
    +UTF-8 is set                                39505 / 39584          0.3        3950.5       1.0X
    --- End diff --
    
    I commented on the PR. Please add another benchmark cases instead of changing the existing numbers.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged to master.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98120/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by MaxGekk <gi...@git.apache.org>.
Github user MaxGekk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r230030467
  
    --- Diff: sql/core/benchmarks/JSONBenchmark-results.txt ---
    @@ -0,0 +1,37 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 62946 / 63310          1.6         629.5       1.0X
    +UTF-8 is set                              112814 / 112866          0.9        1128.1       0.6X
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 16468 / 16553          6.1         164.7       1.0X
    +UTF-8 is set                                16420 / 16441          6.1         164.2       1.0X
    +
    +Preparing data for benchmarking ...
    +OpenJDK 64-Bit Server VM 1.8.0_191-b12 on Linux 3.10.0-862.3.2.el7.x86_64
    +Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
    +JSON parsing of wide lines:              Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 39789 / 40053          0.3        3978.9       1.0X
    +UTF-8 is set                                39505 / 39584          0.3        3950.5       1.0X
    --- End diff --
    
    The numbers for currently used Jackson parser should be slightly different. The PR https://github.com/apache/spark/pull/22920 triggers creation of Jackson parser.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Thank you, @heary-cao , @yucai , @wangyum , and @HyukjinKwon .


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98242 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98242/testReport)** for PR 22844 at commit [`2c73385`](https://github.com/apache/spark/commit/2c73385055a9a4357117f6ad6de53112e1f5497b).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98075 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98075/testReport)** for PR 22844 at commit [`62af4fd`](https://github.com/apache/spark/commit/62af4fd4182f9b63f529efbcb51c15535e200a5b).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98262 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98262/testReport)** for PR 22844 at commit [`473a3a5`](https://github.com/apache/spark/commit/473a3a57d1249bc8296935b164a9891558ce0628).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98253/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229211569
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    --- End diff --
    
    @heary-cao . Could you review and merge https://github.com/heary-cao/spark/pull/3 ?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    LGTM


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229213583
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    I also run this benchmark and got the same ratio. So it's a little weird.
    - https://github.com/heary-cao/spark/pull/3/files#diff-7676fb48b895486092bea2fb491e6de4R18


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98199 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98199/testReport)** for PR 22844 at commit [`fbdbf83`](https://github.com/apache/spark/commit/fbdbf83c98a6ee61260ab1af30dfe7dae2890a25).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by yucai <gi...@git.apache.org>.
Github user yucai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229010476
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmarks.scala ---
    @@ -195,23 +170,16 @@ object JSONBenchmarks extends SQLHelper {
             ds.count()
           }
     
    -      /*
    -      Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    -
    -      Count a dataset with 10 columns:      Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    -      ---------------------------------------------------------------------------------------------
    -      Select 10 columns + count()               9961 / 10006          1.0         996.1       1.0X
    -      Select 1 column + count()                  8355 / 8470          1.2         835.5       1.2X
    -      count()                                    2104 / 2156          4.8         210.4       4.7X
    -      */
           benchmark.run()
         }
       }
     
    -  def main(args: Array[String]): Unit = {
    -    schemaInferring(100 * 1000 * 1000)
    -    perlineParsing(100 * 1000 * 1000)
    -    perlineParsingOfWideColumn(10 * 1000 * 1000)
    -    countBenchmark(10 * 1000 * 1000)
    +  override def runBenchmarkSuite(): Unit = {
    --- End diff --
    
    #22872 has updated `runBenchmarkSuite`'s signature.
    ```suggestion
      override def runBenchmarkSuite(mainArgs: Array[String]): Unit = {
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98242/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229212923
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    Wait .. this is almost 50% slower. This had to be around 8000ish.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98192 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98192/testReport)** for PR 22844 at commit [`7d23c18`](https://github.com/apache/spark/commit/7d23c18f10e50f55f0f08116284c17cf572ed326).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229205020
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    --- End diff --
    
    I'll make a PR to you.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98262 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98262/testReport)** for PR 22844 at commit [`473a3a5`](https://github.com/apache/spark/commit/473a3a57d1249bc8296935b164a9891558ce0628).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98242 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98242/testReport)** for PR 22844 at commit [`2c73385`](https://github.com/apache/spark/commit/2c73385055a9a4357117f6ad6de53112e1f5497b).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98263/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98263 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98263/testReport)** for PR 22844 at commit [`422df47`](https://github.com/apache/spark/commit/422df479aae55b52e17eccf1f46675c9b7369ddd).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98199 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98199/testReport)** for PR 22844 at commit [`fbdbf83`](https://github.com/apache/spark/commit/fbdbf83c98a6ee61260ab1af30dfe7dae2890a25).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98123 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98123/testReport)** for PR 22844 at commit [`ebef3f7`](https://github.com/apache/spark/commit/ebef3f74f45b94ef41c088352cc8310b3cf4d1cc).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98193 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98193/testReport)** for PR 22844 at commit [`15c0893`](https://github.com/apache/spark/commit/15c08933866d7a14e28fad2afd58fb062814ce87).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by wangyum <gi...@git.apache.org>.
Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r228832419
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmarks.scala ---
    @@ -16,32 +16,30 @@
      */
     package org.apache.spark.sql.execution.datasources.json
     
    -import java.io.File
    -
    -import org.apache.spark.SparkConf
     import org.apache.spark.benchmark.Benchmark
    -import org.apache.spark.sql.{Row, SparkSession}
    -import org.apache.spark.sql.catalyst.plans.SQLHelper
    +import org.apache.spark.sql.Row
    +import org.apache.spark.sql.execution.benchmark.SqlBasedBenchmark
     import org.apache.spark.sql.functions.lit
     import org.apache.spark.sql.types._
     
     /**
      * The benchmarks aims to measure performance of JSON parsing when encoding is set and isn't.
    - * To run this:
    - *  spark-submit --class <this class> --jars <spark sql test jar>
    + * To run this benchmark:
    + * {{{
    + *   1. without sbt:
    + *      bin/spark-submit --class <this class> --jars <spark core test jar> <spark sql test jar>
    --- End diff --
    
    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>
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98072 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98072/testReport)** for PR 22844 at commit [`937111f`](https://github.com/apache/spark/commit/937111f7f53744c8fe1a6b4fd0559643743eefae).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98262/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by wangyum <gi...@git.apache.org>.
Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r228841276
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmarks.scala ---
    @@ -16,32 +16,33 @@
      */
     package org.apache.spark.sql.execution.datasources.json
     
    -import java.io.File
    -
    -import org.apache.spark.SparkConf
     import org.apache.spark.benchmark.Benchmark
    -import org.apache.spark.sql.{Row, SparkSession}
    -import org.apache.spark.sql.catalyst.plans.SQLHelper
    +import org.apache.spark.sql.Row
    +import org.apache.spark.sql.execution.benchmark.SqlBasedBenchmark
     import org.apache.spark.sql.functions.lit
     import org.apache.spark.sql.types._
     
     /**
      * The benchmarks aims to measure performance of JSON parsing when encoding is set and isn't.
    - * To run this:
    - *  spark-submit --class <this class> --jars <spark sql test jar>
    + * To run this benchmark:
    + * {{{
    + *   1. without sbt:
    + *      bin/spark-submit --class  org.apache.spark.sql.execution.datasources.json.JSONBenchmarks
    --- End diff --
    
    Sorry @heary-cao I mean update here to:
    ```
    bin/spark-submit --class <this class> --jars <spark core test jar>,<spark catalyst test jar> <spark sql test jar>
    ```
    and update [PR description](https://github.com/apache/spark/pull/22844#issue-225971331) to:
    ```
    bin/spark-submit --class org.apache.spark.sql.execution.datasources.json.JSONBenchmarks --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
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98072/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by heary-cao <gi...@git.apache.org>.
Github user heary-cao commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98117/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by heary-cao <gi...@git.apache.org>.
Github user heary-cao commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    cc @dongjoon-hyun, @wangyum


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98075/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229019783
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmarks.scala ---
    @@ -195,23 +170,16 @@ object JSONBenchmarks extends SQLHelper {
             ds.count()
           }
     
    -      /*
    -      Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    -
    -      Count a dataset with 10 columns:      Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    -      ---------------------------------------------------------------------------------------------
    -      Select 10 columns + count()               9961 / 10006          1.0         996.1       1.0X
    -      Select 1 column + count()                  8355 / 8470          1.2         835.5       1.2X
    -      count()                                    2104 / 2156          4.8         210.4       4.7X
    -      */
           benchmark.run()
         }
       }
     
    -  def main(args: Array[String]): Unit = {
    -    schemaInferring(100 * 1000 * 1000)
    -    perlineParsing(100 * 1000 * 1000)
    -    perlineParsingOfWideColumn(10 * 1000 * 1000)
    -    countBenchmark(10 * 1000 * 1000)
    +  override def runBenchmarkSuite(): Unit = {
    --- End diff --
    
    +1 for @yucai 's comment.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    ok to test


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229210176
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    Hi, @HyukjinKwon . According to the ratio, it seems to be a regression on `No encoding` case. How do you think this change?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98199/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Lgtm


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by dongjoon-hyun <gi...@git.apache.org>.
Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229202285
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    --- End diff --
    
    With the same reason (https://github.com/apache/spark/pull/22845#discussion_r229199434), it's difficult to figure out the CPU.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    **[Test build #98253 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/98253/testReport)** for PR 22844 at commit [`4116879`](https://github.com/apache/spark/commit/411687987ec5618f23b6ba24c0c322b3aeef04bb).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22844#discussion_r229213742
  
    --- Diff: sql/core/benchmarks/JSONBenchmarks-results.txt ---
    @@ -0,0 +1,33 @@
    +================================================================================================
    +Benchmark for performance of JSON parsing
    +================================================================================================
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON schema inferring:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 48088 / 48180          2.1         480.9       1.0X
    +UTF-8 is set                                71881 / 71992          1.4         718.8       0.7X
    +
    +OpenJDK 64-Bit Server VM 1.8.0_163-b01 on Windows 7 6.1
    +Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
    +JSON per-line parsing:                   Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    +------------------------------------------------------------------------------------------------
    +No encoding                                 12107 / 12246          8.3         121.1       1.0X
    +UTF-8 is set                                12375 / 12475          8.1         123.8       1.0X
    --- End diff --
    
    IIRC, this benchmark was added rather we can make sure setting encoding does not affect the performance without encoding (right @MaxGekk ?). We should fix this. @cloud-fan


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/98123/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #22844: [SPARK-25847][SQL][TEST] Refactor JSONBenchmarks to use ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22844
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org