Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented May 1, 2020

What changes were proposed in this pull request?

Set spark.ui.enabled to false in SqlBasedBenchmark.getSparkSession. This disables UI in all SQL benchmarks by default.

Why are the changes needed?

UI overhead lowers numbers in the Relative column and impacts on Stdev in benchmark results.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Checked by running DateTimeRebaseBenchmark.

@SparkQA
Copy link

SparkQA commented May 1, 2020

Test build #122179 has finished for PR 28432 at commit 4c2c13e.

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

package org.apache.spark.sql.execution.benchmark

import org.apache.spark.benchmark.{Benchmark, BenchmarkBase}
import org.apache.spark.internal.config.UI._
Copy link
Member

Choose a reason for hiding this comment

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

nit: import org.apache.spark.internal.config.UI.UI_ENABLED

@SparkQA
Copy link

SparkQA commented May 2, 2020

Test build #122197 has finished for PR 28432 at commit 98d2b1f.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@MaxGekk
Copy link
Member Author

MaxGekk commented May 2, 2020

jenkins, retest this, please

@maropu maropu closed this in 13dddee May 2, 2020
maropu pushed a commit that referenced this pull request May 2, 2020
### What changes were proposed in this pull request?
Set `spark.ui.enabled` to `false` in `SqlBasedBenchmark.getSparkSession`. This disables UI in all SQL benchmarks by default.

### Why are the changes needed?
UI overhead lowers numbers in the `Relative` column and impacts on `Stdev` in benchmark results.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Checked by running `DateTimeRebaseBenchmark`.

Closes #28432 from MaxGekk/ui-off-in-benchmarks.

Authored-by: Max Gekk <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
(cherry picked from commit 13dddee)
Signed-off-by: Takeshi Yamamuro <[email protected]>
@maropu
Copy link
Member

maropu commented May 2, 2020

Since I checked the last commit doesn't affect test results, I've merged to mater/branch-3.0. Thanks, @MaxGekk !

@SparkQA
Copy link

SparkQA commented May 2, 2020

Test build #122204 has finished for PR 28432 at commit 98d2b1f.

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

huaxingao pushed a commit to huaxingao/spark that referenced this pull request May 4, 2020
### What changes were proposed in this pull request?
Set `spark.ui.enabled` to `false` in `SqlBasedBenchmark.getSparkSession`. This disables UI in all SQL benchmarks by default.

### Why are the changes needed?
UI overhead lowers numbers in the `Relative` column and impacts on `Stdev` in benchmark results.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Checked by running `DateTimeRebaseBenchmark`.

Closes apache#28432 from MaxGekk/ui-off-in-benchmarks.

Authored-by: Max Gekk <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
@MaxGekk MaxGekk deleted the ui-off-in-benchmarks branch June 5, 2020 19:48
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