2021-04-03 16:02:56 -04:00
|
|
|
OpenJDK 64-Bit Server VM 1.8.0_282-b08 on Linux 5.4.0-1043-azure
|
|
|
|
Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
|
2019-09-17 18:09:16 -04:00
|
|
|
make_date(): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|
2021-04-03 16:02:56 -04:00
|
|
|
prepare make_date() 2468 2609 192 40.5 24.7 1.0X
|
|
|
|
make_date(2019, 9, 16) 2260 2298 44 44.2 22.6 1.1X
|
|
|
|
make_date(*, *, *) 4163 4247 74 24.0 41.6 0.6X
|
2019-09-17 18:09:16 -04:00
|
|
|
|
2021-04-03 16:02:56 -04:00
|
|
|
OpenJDK 64-Bit Server VM 1.8.0_282-b08 on Linux 5.4.0-1043-azure
|
|
|
|
Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
|
[SPARK-32072][CORE][TESTS] Fix table formatting with benchmark results
### What changes were proposed in this pull request?
Set column width w/ benchmark names to maximum of either
1. 40 (before this PR) or
2. The length of benchmark name or
3. Maximum length of cases names
### Why are the changes needed?
To improve readability of benchmark results. For example, `MakeDateTimeBenchmark`.
Before:
```
make_timestamp(): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
------------------------------------------------------------------------------------------------------------------------
prepare make_timestamp() 3636 3673 38 0.3 3635.7 1.0X
make_timestamp(2019, 1, 2, 3, 4, 50.123456) 94 99 4 10.7 93.8 38.8X
make_timestamp(2019, 1, 2, 3, 4, 60.000000) 68 80 13 14.6 68.3 53.2X
make_timestamp(2019, 12, 31, 23, 59, 60.00) 65 79 19 15.3 65.3 55.7X
make_timestamp(*, *, *, 3, 4, 50.123456) 271 280 14 3.7 270.7 13.4X
```
After:
```
make_timestamp(): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
---------------------------------------------------------------------------------------------------------------------------
prepare make_timestamp() 3694 3745 82 0.3 3694.0 1.0X
make_timestamp(2019, 1, 2, 3, 4, 50.123456) 82 90 9 12.2 82.3 44.9X
make_timestamp(2019, 1, 2, 3, 4, 60.000000) 72 77 5 13.9 71.9 51.4X
make_timestamp(2019, 12, 31, 23, 59, 60.00) 67 71 5 15.0 66.8 55.3X
make_timestamp(*, *, *, 3, 4, 50.123456) 273 289 14 3.7 273.2 13.5X
```
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
By re-generating benchmark results for `MakeDateTimeBenchmark`:
```
$ SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain org.apache.spark.sql.execution.benchmark.MakeDateTimeBenchmark"
```
in the environment:
| Item | Description |
| ---- | ----|
| Region | us-west-2 (Oregon) |
| Instance | r3.xlarge |
| AMI | ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20190722.1 (ami-06f2f779464715dc5) |
| Java | OpenJDK 64-Bit Server VM 1.8.0_252 and OpenJDK 64-Bit Server VM 11.0.7+10 |
Closes #28906 from MaxGekk/benchmark-table-formatting.
Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2020-06-24 00:43:53 -04:00
|
|
|
make_timestamp(): Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
|
|
|
|
---------------------------------------------------------------------------------------------------------------------------
|
2021-04-03 16:02:56 -04:00
|
|
|
prepare make_timestamp() 3667 3722 54 0.3 3667.0 1.0X
|
|
|
|
make_timestamp(2019, 1, 2, 3, 4, 50.123456) 44 44 0 22.9 43.6 84.0X
|
|
|
|
make_timestamp(2019, 1, 2, 3, 4, 60.000000) 41 42 1 24.3 41.1 89.1X
|
|
|
|
make_timestamp(2019, 12, 31, 23, 59, 60.00) 41 43 3 24.6 40.7 90.0X
|
|
|
|
make_timestamp(*, *, *, 3, 4, 50.123456) 244 247 2 4.1 244.4 15.0X
|
|
|
|
make_timestamp(*, *, *, *, *, 0) 241 248 7 4.2 240.6 15.2X
|
|
|
|
make_timestamp(*, *, *, *, *, 60.0) 239 245 6 4.2 239.5 15.3X
|
|
|
|
make_timestamp(2019, 1, 2, *, *, *) 3894 3944 58 0.3 3893.6 0.9X
|
|
|
|
make_timestamp(*, *, *, *, *, *) 3952 3976 38 0.3 3951.8 0.9X
|
2019-09-17 18:09:16 -04:00
|
|
|
|