Skip to content

Conversation

@dbtsai
Copy link
Member

@dbtsai dbtsai commented Oct 18, 2019

What changes were proposed in this pull request?

Add benchmark code for MapStatuses serialization & deserialization performance.

Why are the changes needed?

For comparing the performance differences against optimization.

Does this PR introduce any user-facing change?

No

How was this patch tested?

No test is required.

* {{{
* To run this benchmark:
* 1. without sbt: bin/spark-submit --class <this class>
* --jars <catalyst test jar>,<core test jar>
Copy link
Member

Choose a reason for hiding this comment

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

catalyst?

import org.apache.commons.io.FileUtils
benchmark.out.println("Compressed Serialized MapStatus sizes: " +
FileUtils.byteCountToDisplaySize(serializedMapStatusSizes))
benchmark.out.println(s"Compressed Serialized Broadcast MapStatus sizes: " +
Copy link
Member

Choose a reason for hiding this comment

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

nit. s" -> ".

@dongjoon-hyun
Copy link
Member

I'll make the generate result PR to your branch soon.

@dongjoon-hyun
Copy link
Member

Hi, @dbtsai .
I made a PR to you. Could you review and merge the JDK8/11 result?

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-29515] [Core] MapStatuses SerDeser Benchmark [SPARK-29515][Core] MapStatuses SerDeser Benchmark Oct 18, 2019
@dbtsai
Copy link
Member Author

dbtsai commented Oct 18, 2019

@dongjoon-hyun thanks for benchmark result and review!

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thanks, @dbtsai

@dbtsai dbtsai closed this in 23f45f1 Oct 18, 2019
@dongjoon-hyun
Copy link
Member

Also, cc @wangyum since this is a new JDK8/11 benchmark in core module.

@SparkQA
Copy link

SparkQA commented Oct 18, 2019

Test build #112293 has finished for PR 26169 at commit 8aeb1e2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member

wangyum commented Oct 18, 2019

Thank you @dbtsai @dongjoon-hyun

@SparkQA
Copy link

SparkQA commented Oct 19, 2019

Test build #112297 has finished for PR 26169 at commit 8aa05c6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dbtsai dbtsai deleted the benchmark branch November 11, 2019 23:04
otterc pushed a commit to linkedin/spark that referenced this pull request Mar 22, 2023
<!--
Thanks for sending a pull request!  Here are some tips for you:
  1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
  2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
  3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
  4. Be sure to keep the PR description updated to reflect all changes.
  5. Please write your PR title to summarize what this PR proposes.
  6. If possible, provide a concise example to reproduce the issue for a faster review.
-->

Add benchmark code for MapStatuses serialization & deserialization performance.

For comparing the performance differences against optimization.

<!--
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If no, write 'No'.
-->
No

<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
-->
No test is required.

Closes apache#26169 from dbtsai/benchmark.

Lead-authored-by: DB Tsai <[email protected]>
Co-authored-by: Dongjoon Hyun <[email protected]>
Co-authored-by: DB Tsai <[email protected]>
Signed-off-by: DB Tsai <[email protected]>

Ref: LIHADOOP-56788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants