-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-25486][TEST] Refactor SortBenchmark to use main method
## What changes were proposed in this pull request? Refactor SortBenchmark to use main method. Generate benchmark result: ``` SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain org.apache.spark.sql.execution.benchmark.SortBenchmark" ``` ## How was this patch tested? manual tests Closes #22495 from yucai/SPARK-25486. Authored-by: yucai <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information
1 parent
9cbd001
commit 04db035
Showing
2 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
================================================================================================ | ||
radix sort | ||
================================================================================================ | ||
|
||
Java HotSpot(TM) 64-Bit Server VM 1.8.0_162-b12 on Mac OS X 10.13.6 | ||
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz | ||
|
||
radix sort 25000000: Best/Avg Time(ms) Rate(M/s) Per Row(ns) Relative | ||
------------------------------------------------------------------------------------------------ | ||
reference TimSort key prefix array 11770 / 11960 2.1 470.8 1.0X | ||
reference Arrays.sort 2106 / 2128 11.9 84.3 5.6X | ||
radix sort one byte 93 / 100 269.7 3.7 126.9X | ||
radix sort two bytes 171 / 179 146.0 6.9 68.7X | ||
radix sort eight bytes 659 / 664 37.9 26.4 17.9X | ||
radix sort key prefix array 1024 / 1053 24.4 41.0 11.5X | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters