GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/10816
[SPARK-12888][SQL] benchmark the new hash expression
Benchmark it on 4 different schemas, the result:
```
Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
Hash For simple: Avg Time(ms) Avg Rate(M/s) Relative
Rate
-------------------------------------------------------------------------------
interpreted version 31.47 266.54
1.00 X
codegen version 64.52 130.01
0.49 X
```
```
Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
Hash For normal: Avg Time(ms) Avg Rate(M/s) Relative
Rate
-------------------------------------------------------------------------------
interpreted version 4068.11 0.26
1.00 X
codegen version 1175.92 0.89
3.46 X
```
```
Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
Hash For array: Avg Time(ms) Avg Rate(M/s) Relative
Rate
-------------------------------------------------------------------------------
interpreted version 9276.70 0.06
1.00 X
codegen version 14762.23 0.04
0.63 X
```
```
Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
Hash For map: Avg Time(ms) Avg Rate(M/s) Relative
Rate
-------------------------------------------------------------------------------
interpreted version 58869.79 0.01
1.00 X
codegen version 9285.36 0.06
6.34 X
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark hash-benchmark
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10816.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 #10816
----
commit a8d9433b622c005390e82804f0c0c09c53cb965d
Author: Wenchen Fan <[email protected]>
Date: 2016-01-16T05:21:09Z
benchmark for hash expression
commit 28763a1bf7a70683ef392c3f7a7dbf5f56ec1fde
Author: Wenchen Fan <[email protected]>
Date: 2016-01-17T21:10:58Z
Merge remote-tracking branch 'origin/master' into hash-benchmark
commit d753ce8480115ffad37f8570b70c12a42d7e69b8
Author: Wenchen Fan <[email protected]>
Date: 2016-01-18T21:07:02Z
Merge remote-tracking branch 'origin/master' into hash-benchmark
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]