-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-25581][SQL] Rename method benchmark
as runBenchmarkSuite
in BenchmarkBase
#22599
Conversation
/** | ||
* Main process of the whole benchmark. | ||
*/ | ||
def benchmarkSuite(): Unit |
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.
I got the idea of this PR. But, for me, benchmarkSuite
looks like a test suite again. Isn't it confusing in another way.
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.
Well it means a collection of benchmarks. Just like TestSuite
is a collection of test cases.
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.
For the word suite
, it doesn't have to be about testing.
289ee3e
to
78e48ea
Compare
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.
LGTM
Test build #96816 has finished for PR 22599 at commit
|
Test build #96818 has finished for PR 22599 at commit
|
benchmark
as benchmarkSuite
in BenchmarkBase
benchmark
as runBenchmarkSuite
in BenchmarkBase
Discuss with @cloud-fan offline. Rename method @dongjoon-hyun @wangyum Is this OK to you? |
Thanks @gengliangwang I agree with you. It’s a good change. |
Test build #96855 has finished for PR 22599 at commit
|
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.
+1, LGTM. Merged to master.
…n `BenchmarkBase` ## What changes were proposed in this pull request? Rename method `benchmark` in `BenchmarkBase` as `runBenchmarkSuite `. Also add comments. Currently the method name `benchmark` is a bit confusing. Also the name is the same as instances of `Benchmark`: https://github.com/apache/spark/blob/f246813afba16fee4d703f09e6302011b11806f3/sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcReadBenchmark.scala#L330-L339 ## How was this patch tested? Unit test. Closes apache#22599 from gengliangwang/renameBenchmarkSuite. Authored-by: Gengliang Wang <gengliang.wang@databricks.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
Rename method
benchmark
inBenchmarkBase
asrunBenchmarkSuite
. Also add comments.Currently the method name
benchmark
is a bit confusing. Also the name is the same as instances ofBenchmark
:spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcReadBenchmark.scala
Lines 330 to 339 in f246813
How was this patch tested?
Unit test.