Skip to content

Comments

[Benchmark] Improve perf of Dictionary Benchmark Setup#3329

Merged
rdblue merged 1 commit intoapache:masterfrom
RussellSpitzer:DictBenchSpeedup
Oct 20, 2021
Merged

[Benchmark] Improve perf of Dictionary Benchmark Setup#3329
rdblue merged 1 commit intoapache:masterfrom
RussellSpitzer:DictBenchSpeedup

Conversation

@RussellSpitzer
Copy link
Member

Previously the benchmarking code used a number of "when" constructs to
generate data in rings. This became much more expensive somewhere between
Spark 2.4.5 and 2.4.6 for reasons we are not certain of. In an attempt
to improve performance we have removed all of these constructs and
replaced them with identical modulo operations and add date operations
when applicable.

Previously the benchmarking code used a number of "when" constructs to
generate data in rings. This became much more expensive somewhere between
Spark 2.4.5 and 2.4.6 for reasons we are not certain of. In an attempt
to improve performance we have removed all of these constructs and
replaced them with identical modulo operations and add date operations
when applicable.
@rdblue
Copy link
Contributor

rdblue commented Oct 20, 2021

Good catch!

@rdblue
Copy link
Contributor

rdblue commented Oct 20, 2021

I'm going to merge this before tests pass because it only modifies benchmark code that won't affect tests.

@rdblue rdblue merged commit d524a1c into apache:master Oct 20, 2021
Copy link
Contributor

@kbendick kbendick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this. Checked it out and seems to be the same.

@RussellSpitzer
Copy link
Member Author

Ahh it wasn't done :( I broke the spark2 jmh tests, just fixed and pushed

@RussellSpitzer
Copy link
Member Author

#3330

@nastra
Copy link
Contributor

nastra commented Oct 21, 2021

fixes #3157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants