spark-instrumented-optimizer/sql/core/benchmarks/IntervalBenchmark-jdk11-results.txt
Wenchen Fan cdea520ff8 [SPARK-29532][SQL] Simplify interval string parsing
### What changes were proposed in this pull request?

Only use antlr4 to parse the interval string, and remove the duplicated parsing logic from `CalendarInterval`.

### Why are the changes needed?

Simplify the code and fix inconsistent behaviors.

### Does this PR introduce any user-facing change?

No

### How was this patch tested?

Pass the Jenkins with the updated test cases.

Closes #26190 from cloud-fan/parser.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
2019-10-24 09:15:59 -07:00

26 lines
2.7 KiB
Plaintext

OpenJDK 64-Bit Server VM 11.0.4+11-post-Ubuntu-1ubuntu218.04.3 on Linux 4.15.0-1044-aws
Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
cast strings to intervals: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative
------------------------------------------------------------------------------------------------------------------------
prepare string w/ interval 672 728 64 1.5 672.1 1.0X
prepare string w/o interval 580 602 19 1.7 580.4 1.2X
1 units w/ interval 9450 9575 138 0.1 9449.6 0.1X
1 units w/o interval 8948 8968 19 0.1 8948.3 0.1X
2 units w/ interval 10947 10966 19 0.1 10947.1 0.1X
2 units w/o interval 10470 10489 26 0.1 10469.5 0.1X
3 units w/ interval 12265 12333 72 0.1 12264.5 0.1X
3 units w/o interval 12001 12004 3 0.1 12000.6 0.1X
4 units w/ interval 13749 13828 69 0.1 13748.5 0.0X
4 units w/o interval 13467 13479 15 0.1 13467.3 0.0X
5 units w/ interval 15392 15446 51 0.1 15392.1 0.0X
5 units w/o interval 15090 15107 29 0.1 15089.7 0.0X
6 units w/ interval 16696 16714 20 0.1 16695.9 0.0X
6 units w/o interval 16361 16366 5 0.1 16361.4 0.0X
7 units w/ interval 18190 18270 71 0.1 18190.2 0.0X
7 units w/o interval 17757 17767 9 0.1 17756.7 0.0X
8 units w/ interval 19821 19870 43 0.1 19820.7 0.0X
8 units w/o interval 19479 19555 97 0.1 19479.5 0.0X
9 units w/ interval 21417 21481 56 0.0 21417.1 0.0X
9 units w/o interval 21058 21131 86 0.0 21058.2 0.0X