-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-16526][SQL] Benchmarking Performance for Fast HashMap Implementations #14266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #62539 has finished for PR 14266 at commit
|
|
Test build #62541 has finished for PR 14266 at commit
|
c984914 to
c2b276f
Compare
|
Test build #62945 has finished for PR 14266 at commit
|
|
Test build #62947 has finished for PR 14266 at commit
|
| sparkSession.conf.set("spark.sql.codegen.aggregate.map.columns.max", "30") | ||
|
|
||
| // scalastyle:off | ||
| println(Benchmark.getJVMOSInfo()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: to minimize duplication, maybe create a small utility function that can then be reused in all test cases.
|
Just a minor nit. LGTM. |
| */ | ||
| } | ||
|
|
||
| ignore("varying key fields, varying value field, 16 linear distinct keys") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The performance difference between column-based and row-based are cache locality, could you increase the number of distinct keys to make sure that not all the keys/values are fit in L1 cache? for example, 4k. We could also increase that to 64k in first two cases (single key, single value).
|
@davies Added some test results with larger number of distinct keys. |
|
Test build #63296 has finished for PR 14266 at commit
|
|
Test build #63299 has finished for PR 14266 at commit
|
| */ | ||
| } | ||
|
|
||
| ignore("single key field, single value field, varying linear distinct keys") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we access them in random way?
|
(gentle ping @ooq) |
What changes were proposed in this pull request?
The 3rd PR in its series to resolve SPARK-16523.
This patch adds benchmark tests for vectorized hashmap vs. row-based hashmap (along with results in the comments). Those tests are ignored by default as they take long to run.
How was this patch tested?
This patch are mostly tests itself.