From eb06e2c85ba22254e46effffac279eaaa928d0de Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sun, 12 Apr 2020 21:53:40 +0300 Subject: [PATCH 01/11] Optimise fromJavaDate --- .../spark/sql/catalyst/util/DateTimeUtils.scala | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala index 006ef40c80f5..9991dbb39a66 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala @@ -101,16 +101,10 @@ object DateTimeUtils { * @return The number of days since epoch from java.sql.Date. */ def fromJavaDate(date: Date): SQLDate = { - val era = if (date.before(julianCommonEraStart)) 0 else 1 - val localDate = LocalDate - .of(date.getYear + 1900, date.getMonth + 1, 1) - .`with`(ChronoField.ERA, era) - // Add days separately to convert dates existed in Julian calendar but not - // in Proleptic Gregorian calendar. For example, 1000-02-29 is valid date - // in Julian calendar because 1000 is a leap year but 1000 is not a leap - // year in Proleptic Gregorian calendar. And 1000-02-29 doesn't exist in it. - .plusDays(date.getDate - 1) // Returns the next valid date after `date.getDate - 1` days - localDateToDays(localDate) + val millisUtc = date.getTime + val millisLocal = millisUtc + TimeZone.getDefault.getOffset(millisUtc) + val julianDays = Math.toIntExact(Math.floorDiv(millisLocal, MILLIS_PER_DAY)) + rebaseJulianToGregorianDays(julianDays) } /** From 44caa4a061235b9c4223e62160f1232096a48665 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sun, 12 Apr 2020 22:04:10 +0300 Subject: [PATCH 02/11] Benchmark fromJavaDate --- .../spark/sql/execution/benchmark/DateTimeBenchmark.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala index 5a857622da6f..eb643907ffb6 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala @@ -132,6 +132,11 @@ object DateTimeBenchmark extends SqlBasedBenchmark { val rowsNum = 5000000 val numIters = 3 val benchmark = new Benchmark("To/from java.sql.Timestamp", rowsNum, output = output) + benchmark.addCase("From java.sql.Date", numIters) { _ => + spark.range(rowsNum) + .map(millis => new java.sql.Date(millis)) + .noop() + } benchmark.addCase("From java.sql.Timestamp", numIters) { _ => spark.range(rowsNum) .map(millis => new Timestamp(millis)) From af70cdcf7413378e58fd92695495332f56638c4a Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sun, 12 Apr 2020 20:03:27 +0000 Subject: [PATCH 03/11] Re-gen DateTimeRebaseBenchmark results on JDK 8 --- .../DateTimeRebaseBenchmark-results.txt | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/sql/core/benchmarks/DateTimeRebaseBenchmark-results.txt b/sql/core/benchmarks/DateTimeRebaseBenchmark-results.txt index a79f6fba9228..d853de39f58f 100644 --- a/sql/core/benchmarks/DateTimeRebaseBenchmark-results.txt +++ b/sql/core/benchmarks/DateTimeRebaseBenchmark-results.txt @@ -6,49 +6,49 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Save dates to parquet: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, noop 24030 24030 0 4.2 240.3 1.0X -before 1582, noop 10900 10900 0 9.2 109.0 2.2X -after 1582, rebase off 35666 35666 0 2.8 356.7 0.7X -after 1582, rebase on 35872 35872 0 2.8 358.7 0.7X -before 1582, rebase off 22131 22131 0 4.5 221.3 1.1X -before 1582, rebase on 22967 22967 0 4.4 229.7 1.0X +after 1582, noop 23954 23954 0 4.2 239.5 1.0X +before 1582, noop 10182 10182 0 9.8 101.8 2.4X +after 1582, rebase off 35593 35593 0 2.8 355.9 0.7X +after 1582, rebase on 36718 36718 0 2.7 367.2 0.7X +before 1582, rebase off 21263 21263 0 4.7 212.6 1.1X +before 1582, rebase on 22080 22080 0 4.5 220.8 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Load dates from parquet: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, vec off, rebase off 12523 12589 58 8.0 125.2 1.0X -after 1582, vec off, rebase on 13387 13466 86 7.5 133.9 0.9X -after 1582, vec on, rebase off 3646 3678 41 27.4 36.5 3.4X -after 1582, vec on, rebase on 5104 5198 123 19.6 51.0 2.5X -before 1582, vec off, rebase off 13041 13101 98 7.7 130.4 1.0X -before 1582, vec off, rebase on 14077 14104 23 7.1 140.8 0.9X -before 1582, vec on, rebase off 3667 3726 87 27.3 36.7 3.4X -before 1582, vec on, rebase on 5504 5521 21 18.2 55.0 2.3X +after 1582, vec off, rebase off 12620 12639 30 7.9 126.2 1.0X +after 1582, vec off, rebase on 13385 13506 189 7.5 133.8 0.9X +after 1582, vec on, rebase off 3649 3677 34 27.4 36.5 3.5X +after 1582, vec on, rebase on 5171 5187 14 19.3 51.7 2.4X +before 1582, vec off, rebase off 13073 13126 63 7.6 130.7 1.0X +before 1582, vec off, rebase on 13882 13984 134 7.2 138.8 0.9X +before 1582, vec on, rebase off 3640 3670 31 27.5 36.4 3.5X +before 1582, vec on, rebase on 5638 5669 36 17.7 56.4 2.2X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Save timestamps to parquet: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, noop 2782 2782 0 36.0 27.8 1.0X -before 1582, noop 2778 2778 0 36.0 27.8 1.0X -after 1582, rebase off 16980 16980 0 5.9 169.8 0.2X -after 1582, rebase on 20023 20023 0 5.0 200.2 0.1X -before 1582, rebase off 17618 17618 0 5.7 176.2 0.2X -before 1582, rebase on 20416 20416 0 4.9 204.2 0.1X +after 1582, noop 2833 2833 0 35.3 28.3 1.0X +before 1582, noop 2760 2760 0 36.2 27.6 1.0X +after 1582, rebase off 16178 16178 0 6.2 161.8 0.2X +after 1582, rebase on 18808 18808 0 5.3 188.1 0.2X +before 1582, rebase off 16379 16379 0 6.1 163.8 0.2X +before 1582, rebase on 19429 19429 0 5.1 194.3 0.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Load timestamps from parquet: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, vec off, rebase off 15098 15146 55 6.6 151.0 1.0X -after 1582, vec off, rebase on 18127 18214 86 5.5 181.3 0.8X -after 1582, vec on, rebase off 4936 4984 42 20.3 49.4 3.1X -after 1582, vec on, rebase on 9685 9745 58 10.3 96.8 1.6X -before 1582, vec off, rebase off 15233 15259 25 6.6 152.3 1.0X -before 1582, vec off, rebase on 18710 18727 24 5.3 187.1 0.8X -before 1582, vec on, rebase off 4954 4980 24 20.2 49.5 3.0X -before 1582, vec on, rebase on 10224 10240 22 9.8 102.2 1.5X +after 1582, vec off, rebase off 14994 15012 26 6.7 149.9 1.0X +after 1582, vec off, rebase on 18060 18100 49 5.5 180.6 0.8X +after 1582, vec on, rebase off 4862 4917 49 20.6 48.6 3.1X +after 1582, vec on, rebase on 9553 9626 81 10.5 95.5 1.6X +before 1582, vec off, rebase off 15072 15178 133 6.6 150.7 1.0X +before 1582, vec off, rebase on 18645 18677 29 5.4 186.4 0.8X +before 1582, vec on, rebase off 4910 4951 39 20.4 49.1 3.1X +before 1582, vec on, rebase on 10139 10218 90 9.9 101.4 1.5X ================================================================================================ @@ -59,36 +59,36 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Save dates to ORC: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, noop 23770 23770 0 4.2 237.7 1.0X -before 1582, noop 10939 10939 0 9.1 109.4 2.2X -after 1582 32879 32879 0 3.0 328.8 0.7X -before 1582 20267 20267 0 4.9 202.7 1.2X +after 1582, noop 23848 23848 0 4.2 238.5 1.0X +before 1582, noop 10289 10289 0 9.7 102.9 2.3X +after 1582 32827 32827 0 3.0 328.3 0.7X +before 1582 19703 19703 0 5.1 197.0 1.2X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Load dates from ORC: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, vec off 39651 39686 31 2.5 396.5 1.0X -after 1582, vec on 3647 3660 13 27.4 36.5 10.9X -before 1582, vec off 38155 38219 61 2.6 381.6 1.0X -before 1582, vec on 4041 4046 6 24.7 40.4 9.8X +after 1582, vec off 45465 45493 26 2.2 454.6 1.0X +after 1582, vec on 3746 3789 54 26.7 37.5 12.1X +before 1582, vec off 21208 21231 25 4.7 212.1 2.1X +before 1582, vec on 4139 4147 13 24.2 41.4 11.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Save timestamps to ORC: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, noop 2802 2802 0 35.7 28.0 1.0X -before 1582, noop 2797 2797 0 35.8 28.0 1.0X -after 1582 59877 59877 0 1.7 598.8 0.0X -before 1582 61361 61361 0 1.6 613.6 0.0X +after 1582, noop 2891 2891 0 34.6 28.9 1.0X +before 1582, noop 2801 2801 0 35.7 28.0 1.0X +after 1582 59491 59491 0 1.7 594.9 0.0X +before 1582 74263 74263 0 1.3 742.6 0.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz Load timestamps from ORC: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -after 1582, vec off 48197 48288 118 2.1 482.0 1.0X -after 1582, vec on 38247 38351 128 2.6 382.5 1.3X -before 1582, vec off 53179 53359 249 1.9 531.8 0.9X -before 1582, vec on 44076 44268 269 2.3 440.8 1.1X +after 1582, vec off 49755 49767 10 2.0 497.6 1.0X +after 1582, vec on 39285 39530 279 2.5 392.9 1.3X +before 1582, vec off 52554 52744 190 1.9 525.5 0.9X +before 1582, vec on 42904 42934 48 2.3 429.0 1.2X From 2b2e1c7642af618882a8d96a7e10de48e15fdc48 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sun, 12 Apr 2020 20:36:52 +0000 Subject: [PATCH 04/11] Re-gen DateTimeBenchmark results on JDK 8 --- .../benchmarks/DateTimeBenchmark-results.txt | 219 +++++++++--------- 1 file changed, 110 insertions(+), 109 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-results.txt b/sql/core/benchmarks/DateTimeBenchmark-results.txt index 346fbd3499ba..261315cc0a52 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 413 435 31 24.2 41.3 1.0X -cast to timestamp wholestage on 357 375 16 28.0 35.7 1.2X +cast to timestamp wholestage off 411 440 41 24.3 41.1 1.0X +cast to timestamp wholestage on 372 399 25 26.9 37.2 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1311 1335 34 7.6 131.1 1.0X -year of timestamp wholestage on 1541 1561 21 6.5 154.1 0.9X +year of timestamp wholestage off 1311 1319 11 7.6 131.1 1.0X +year of timestamp wholestage on 1212 1242 18 8.2 121.2 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1449 1467 26 6.9 144.9 1.0X -quarter of timestamp wholestage on 1403 1418 12 7.1 140.3 1.0X +quarter of timestamp wholestage off 1431 1434 5 7.0 143.1 1.0X +quarter of timestamp wholestage on 1375 1382 9 7.3 137.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1221 1231 14 8.2 122.1 1.0X -month of timestamp wholestage on 1252 1266 8 8.0 125.2 1.0X +month of timestamp wholestage off 1228 1233 7 8.1 122.8 1.0X +month of timestamp wholestage on 1222 1231 6 8.2 122.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1939 1947 11 5.2 193.9 1.0X -weekofyear of timestamp wholestage on 1932 1942 9 5.2 193.2 1.0X +weekofyear of timestamp wholestage off 1962 1966 6 5.1 196.2 1.0X +weekofyear of timestamp wholestage on 1937 1942 6 5.2 193.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1216 1222 9 8.2 121.6 1.0X -day of timestamp wholestage on 1246 1256 14 8.0 124.6 1.0X +day of timestamp wholestage off 1210 1221 15 8.3 121.0 1.0X +day of timestamp wholestage on 1218 1228 7 8.2 121.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1278 1286 12 7.8 127.8 1.0X -dayofyear of timestamp wholestage on 1283 1291 8 7.8 128.3 1.0X +dayofyear of timestamp wholestage off 1279 1289 14 7.8 127.9 1.0X +dayofyear of timestamp wholestage on 1255 1268 11 8.0 125.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1220 1226 9 8.2 122.0 1.0X -dayofmonth of timestamp wholestage on 1232 1249 15 8.1 123.2 1.0X +dayofmonth of timestamp wholestage off 1220 1224 5 8.2 122.0 1.0X +dayofmonth of timestamp wholestage on 1214 1219 4 8.2 121.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1409 1423 21 7.1 140.9 1.0X -dayofweek of timestamp wholestage on 1396 1403 7 7.2 139.6 1.0X +dayofweek of timestamp wholestage off 1399 1401 2 7.1 139.9 1.0X +dayofweek of timestamp wholestage on 1379 1384 5 7.2 137.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1346 1362 22 7.4 134.6 1.0X -weekday of timestamp wholestage on 1330 1341 11 7.5 133.0 1.0X +weekday of timestamp wholestage off 1345 1349 5 7.4 134.5 1.0X +weekday of timestamp wholestage on 1313 1319 6 7.6 131.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 962 963 2 10.4 96.2 1.0X -hour of timestamp wholestage on 981 999 19 10.2 98.1 1.0X +hour of timestamp wholestage off 970 979 12 10.3 97.0 1.0X +hour of timestamp wholestage on 953 960 8 10.5 95.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 996 999 5 10.0 99.6 1.0X -minute of timestamp wholestage on 975 984 11 10.3 97.5 1.0X +minute of timestamp wholestage off 1002 1008 9 10.0 100.2 1.0X +minute of timestamp wholestage on 953 960 12 10.5 95.3 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 1004 1005 2 10.0 100.4 1.0X -second of timestamp wholestage on 979 988 6 10.2 97.9 1.0X +second of timestamp wholestage off 1000 1000 0 10.0 100.0 1.0X +second of timestamp wholestage on 952 959 4 10.5 95.2 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 285 289 6 35.1 28.5 1.0X -current_date wholestage on 302 308 8 33.1 30.2 0.9X +current_date wholestage off 295 301 9 33.9 29.5 1.0X +current_date wholestage on 285 293 13 35.1 28.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 296 298 2 33.8 29.6 1.0X -current_timestamp wholestage on 303 311 7 33.0 30.3 1.0X +current_timestamp wholestage off 292 302 15 34.3 29.2 1.0X +current_timestamp wholestage on 278 296 18 36.0 27.8 1.0X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1041 1042 1 9.6 104.1 1.0X -cast to date wholestage on 1027 1039 9 9.7 102.7 1.0X +cast to date wholestage off 1050 1052 3 9.5 105.0 1.0X +cast to date wholestage on 1010 1015 6 9.9 101.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1250 1254 6 8.0 125.0 1.0X -last_day wholestage on 1267 1273 8 7.9 126.7 1.0X +last_day wholestage off 1245 1251 9 8.0 124.5 1.0X +last_day wholestage on 1240 1255 17 8.1 124.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1118 1122 6 8.9 111.8 1.0X -next_day wholestage on 1081 1096 10 9.2 108.1 1.0X +next_day wholestage off 1124 1127 4 8.9 112.4 1.0X +next_day wholestage on 1057 1063 8 9.5 105.7 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1053 1055 4 9.5 105.3 1.0X -date_add wholestage on 1059 1061 2 9.4 105.9 1.0X +date_add wholestage off 1042 1043 3 9.6 104.2 1.0X +date_add wholestage on 1035 1043 7 9.7 103.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1055 1064 13 9.5 105.5 1.0X -date_sub wholestage on 1055 1060 6 9.5 105.5 1.0X +date_sub wholestage off 1053 1057 5 9.5 105.3 1.0X +date_sub wholestage on 1037 1044 8 9.6 103.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1373 1375 2 7.3 137.3 1.0X -add_months wholestage on 1383 1393 13 7.2 138.3 1.0X +add_months wholestage off 1364 1368 6 7.3 136.4 1.0X +add_months wholestage on 1389 1392 2 7.2 138.9 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 5590 5603 19 1.8 559.0 1.0X -format date wholestage on 5974 5985 8 1.7 597.4 0.9X +format date wholestage off 5686 5691 8 1.8 568.6 1.0X +format date wholestage on 5568 5580 11 1.8 556.8 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 8650 8662 18 1.2 865.0 1.0X -from_unixtime wholestage on 8671 8685 15 1.2 867.1 1.0X +from_unixtime wholestage off 8603 8603 0 1.2 860.3 1.0X +from_unixtime wholestage on 8595 8607 8 1.2 859.5 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1152 1157 7 8.7 115.2 1.0X -from_utc_timestamp wholestage on 1193 1200 7 8.4 119.3 1.0X +from_utc_timestamp wholestage off 1100 1105 8 9.1 110.0 1.0X +from_utc_timestamp wholestage on 1121 1126 7 8.9 112.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1414 1417 3 7.1 141.4 1.0X -to_utc_timestamp wholestage on 1390 1397 7 7.2 139.0 1.0X +to_utc_timestamp wholestage off 1629 1631 3 6.1 162.9 1.0X +to_utc_timestamp wholestage on 1592 1600 11 6.3 159.2 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 332 350 25 30.1 33.2 1.0X -cast interval wholestage on 325 333 7 30.8 32.5 1.0X +cast interval wholestage off 333 333 0 30.0 33.3 1.0X +cast interval wholestage on 300 306 4 33.3 30.0 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1814 1819 7 5.5 181.4 1.0X -datediff wholestage on 1811 1822 9 5.5 181.1 1.0X +datediff wholestage off 1820 1826 9 5.5 182.0 1.0X +datediff wholestage on 1760 1764 7 5.7 176.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 4660 4661 1 2.1 466.0 1.0X -months_between wholestage on 4577 4586 5 2.2 457.7 1.0X +months_between wholestage off 4837 4847 15 2.1 483.7 1.0X +months_between wholestage on 4798 4806 10 2.1 479.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 2006 2119 161 0.5 2005.6 1.0X -window wholestage on 43855 43884 41 0.0 43855.4 0.0X +window wholestage off 1859 2013 219 0.5 1858.9 1.0X +window wholestage on 46971 47037 57 0.0 46970.9 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2336 2339 5 4.3 233.6 1.0X -date_trunc YEAR wholestage on 2204 2211 6 4.5 220.4 1.1X +date_trunc YEAR wholestage off 2371 2371 0 4.2 237.1 1.0X +date_trunc YEAR wholestage on 2333 2346 17 4.3 233.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2338 2339 1 4.3 233.8 1.0X -date_trunc YYYY wholestage on 2200 2208 5 4.5 220.0 1.1X +date_trunc YYYY wholestage off 2369 2373 6 4.2 236.9 1.0X +date_trunc YYYY wholestage on 2346 2352 5 4.3 234.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2337 2340 5 4.3 233.7 1.0X -date_trunc YY wholestage on 2202 2209 6 4.5 220.2 1.1X +date_trunc YY wholestage off 2370 2374 6 4.2 237.0 1.0X +date_trunc YY wholestage on 2339 2343 3 4.3 233.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2238 2239 1 4.5 223.8 1.0X -date_trunc MON wholestage on 2222 2233 11 4.5 222.2 1.0X +date_trunc MON wholestage off 2340 2341 1 4.3 234.0 1.0X +date_trunc MON wholestage on 2330 2337 13 4.3 233.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2243 2243 1 4.5 224.3 1.0X -date_trunc MONTH wholestage on 2216 2224 9 4.5 221.6 1.0X +date_trunc MONTH wholestage off 2349 2352 4 4.3 234.9 1.0X +date_trunc MONTH wholestage on 2330 2341 11 4.3 233.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2237 2239 3 4.5 223.7 1.0X -date_trunc MM wholestage on 2217 2221 3 4.5 221.7 1.0X +date_trunc MM wholestage off 2339 2340 3 4.3 233.9 1.0X +date_trunc MM wholestage on 2333 2341 7 4.3 233.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 1894 1896 3 5.3 189.4 1.0X -date_trunc DAY wholestage on 1851 1856 5 5.4 185.1 1.0X +date_trunc DAY wholestage off 2131 2144 18 4.7 213.1 1.0X +date_trunc DAY wholestage on 2108 2117 6 4.7 210.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 1887 1899 17 5.3 188.7 1.0X -date_trunc DD wholestage on 1846 1855 6 5.4 184.6 1.0X +date_trunc DD wholestage off 2128 2145 25 4.7 212.8 1.0X +date_trunc DD wholestage on 2107 2112 5 4.7 210.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 1947 1951 5 5.1 194.7 1.0X -date_trunc HOUR wholestage on 1909 1918 7 5.2 190.9 1.0X +date_trunc HOUR wholestage off 2020 2025 8 5.0 202.0 1.0X +date_trunc HOUR wholestage on 2031 2038 9 4.9 203.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 381 386 7 26.3 38.1 1.0X -date_trunc MINUTE wholestage on 321 323 1 31.2 32.1 1.2X +date_trunc MINUTE wholestage off 349 372 34 28.7 34.9 1.0X +date_trunc MINUTE wholestage on 357 374 22 28.0 35.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 368 368 0 27.2 36.8 1.0X -date_trunc SECOND wholestage on 324 327 3 30.9 32.4 1.1X +date_trunc SECOND wholestage off 367 374 10 27.3 36.7 1.0X +date_trunc SECOND wholestage on 369 389 41 27.1 36.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2213 2213 0 4.5 221.3 1.0X -date_trunc WEEK wholestage on 2113 2123 11 4.7 211.3 1.0X +date_trunc WEEK wholestage off 2274 2282 12 4.4 227.4 1.0X +date_trunc WEEK wholestage on 2231 2241 11 4.5 223.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3071 3081 14 3.3 307.1 1.0X -date_trunc QUARTER wholestage on 3031 3035 3 3.3 303.1 1.0X +date_trunc QUARTER wholestage off 3072 3074 2 3.3 307.2 1.0X +date_trunc QUARTER wholestage on 3109 3120 15 3.2 310.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 326 328 3 30.7 32.6 1.0X -trunc year wholestage on 307 318 12 32.6 30.7 1.1X +trunc year wholestage off 322 329 11 31.1 32.2 1.0X +trunc year wholestage on 383 412 25 26.1 38.3 0.8X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 327 333 7 30.5 32.7 1.0X -trunc yyyy wholestage on 305 320 17 32.8 30.5 1.1X +trunc yyyy wholestage off 326 335 13 30.7 32.6 1.0X +trunc yyyy wholestage on 319 404 81 31.4 31.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 322 323 1 31.1 32.2 1.0X -trunc yy wholestage on 304 343 67 32.9 30.4 1.1X +trunc yy wholestage off 318 320 2 31.4 31.8 1.0X +trunc yy wholestage on 366 402 35 27.3 36.6 0.9X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 321 321 1 31.2 32.1 1.0X -trunc mon wholestage on 303 313 9 33.0 30.3 1.1X +trunc mon wholestage off 317 318 1 31.6 31.7 1.0X +trunc mon wholestage on 337 382 30 29.7 33.7 0.9X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 319 323 4 31.3 31.9 1.0X -trunc month wholestage on 305 359 75 32.8 30.5 1.0X +trunc month wholestage off 317 319 3 31.5 31.7 1.0X +trunc month wholestage on 332 389 39 30.1 33.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 322 323 1 31.0 32.2 1.0X -trunc mm wholestage on 317 351 53 31.5 31.7 1.0X +trunc mm wholestage off 317 318 2 31.6 31.7 1.0X +trunc mm wholestage on 333 373 31 30.0 33.3 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 219 219 0 4.6 219.4 1.0X -to timestamp str wholestage on 214 216 2 4.7 214.0 1.0X +to timestamp str wholestage off 213 215 2 4.7 213.0 1.0X +to timestamp str wholestage on 209 211 3 4.8 208.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1947 1951 6 0.5 1946.8 1.0X -to_timestamp wholestage on 1950 1958 12 0.5 1949.6 1.0X +to_timestamp wholestage off 1963 1970 10 0.5 1962.8 1.0X +to_timestamp wholestage on 1756 1759 6 0.6 1755.6 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1975 1979 5 0.5 1974.8 1.0X -to_unix_timestamp wholestage on 1895 1908 12 0.5 1895.3 1.0X +to_unix_timestamp wholestage off 1818 1827 12 0.5 1818.3 1.0X +to_unix_timestamp wholestage on 1829 1836 6 0.5 1828.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 284 286 2 3.5 284.3 1.0X -to date str wholestage on 263 266 4 3.8 263.3 1.1X +to date str wholestage off 266 271 6 3.8 266.4 1.0X +to date str wholestage on 258 260 2 3.9 258.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3460 3485 36 0.3 3459.8 1.0X -to_date wholestage on 3413 3431 25 0.3 3413.0 1.0X +to_date wholestage off 3814 3816 3 0.3 3813.8 1.0X +to_date wholestage on 3650 3659 8 0.3 3650.0 1.0X ================================================================================================ @@ -422,8 +422,9 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz To/from java.sql.Timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Timestamp 2032 2038 6 2.5 406.5 1.0X -Collect longs 1276 1597 419 3.9 255.1 1.6X -Collect timestamps 6254 7606 1172 0.8 1250.7 0.3X +From java.sql.Date 418 427 13 12.0 83.5 1.0X +From java.sql.Timestamp 1998 2003 5 2.5 399.7 0.2X +Collect longs 1956 2765 721 2.6 391.3 0.2X +Collect timestamps 6209 7101 1177 0.8 1241.8 0.1X From 84c701041aa1d22f49c00e10cdb4ffcf1241ff9f Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 13 Apr 2020 06:00:02 +0000 Subject: [PATCH 05/11] Re-gen DateTimeBenchmark results on JDK 11 --- .../DateTimeBenchmark-jdk11-results.txt | 219 +++++++++--------- 1 file changed, 110 insertions(+), 109 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt index df9735cb7b0d..3759adfc38c7 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 411 449 54 24.3 41.1 1.0X -cast to timestamp wholestage on 392 408 11 25.5 39.2 1.0X +cast to timestamp wholestage off 409 447 53 24.4 40.9 1.0X +cast to timestamp wholestage on 373 384 12 26.8 37.3 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1368 1376 11 7.3 136.8 1.0X -year of timestamp wholestage on 1272 1293 21 7.9 127.2 1.1X +year of timestamp wholestage off 1394 1444 71 7.2 139.4 1.0X +year of timestamp wholestage on 1219 1294 46 8.2 121.9 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1607 1632 34 6.2 160.7 1.0X -quarter of timestamp wholestage on 1534 1553 22 6.5 153.4 1.0X +quarter of timestamp wholestage off 1607 1610 5 6.2 160.7 1.0X +quarter of timestamp wholestage on 1589 1603 9 6.3 158.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1252 1259 10 8.0 125.2 1.0X -month of timestamp wholestage on 1270 1282 13 7.9 127.0 1.0X +month of timestamp wholestage off 1247 1247 1 8.0 124.7 1.0X +month of timestamp wholestage on 1270 1281 6 7.9 127.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 2234 2242 12 4.5 223.4 1.0X -weekofyear of timestamp wholestage on 1830 1844 10 5.5 183.0 1.2X +weekofyear of timestamp wholestage off 1874 1884 15 5.3 187.4 1.0X +weekofyear of timestamp wholestage on 1859 1874 15 5.4 185.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1248 1256 11 8.0 124.8 1.0X -day of timestamp wholestage on 1248 1255 10 8.0 124.8 1.0X +day of timestamp wholestage off 1234 1236 2 8.1 123.4 1.0X +day of timestamp wholestage on 1268 1286 23 7.9 126.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1290 1303 18 7.8 129.0 1.0X -dayofyear of timestamp wholestage on 1285 1306 20 7.8 128.5 1.0X +dayofyear of timestamp wholestage off 1292 1293 1 7.7 129.2 1.0X +dayofyear of timestamp wholestage on 1286 1294 7 7.8 128.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1261 1263 2 7.9 126.1 1.0X -dayofmonth of timestamp wholestage on 1253 1259 5 8.0 125.3 1.0X +dayofmonth of timestamp wholestage off 1251 1252 0 8.0 125.1 1.0X +dayofmonth of timestamp wholestage on 1257 1271 12 8.0 125.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1419 1421 2 7.0 141.9 1.0X -dayofweek of timestamp wholestage on 1406 1417 11 7.1 140.6 1.0X +dayofweek of timestamp wholestage off 1414 1416 2 7.1 141.4 1.0X +dayofweek of timestamp wholestage on 1420 1432 16 7.0 142.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1346 1350 6 7.4 134.6 1.0X -weekday of timestamp wholestage on 1348 1360 10 7.4 134.8 1.0X +weekday of timestamp wholestage off 1345 1346 0 7.4 134.5 1.0X +weekday of timestamp wholestage on 1355 1361 9 7.4 135.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 1051 1057 8 9.5 105.1 1.0X -hour of timestamp wholestage on 991 1002 9 10.1 99.1 1.1X +hour of timestamp wholestage off 1034 1037 4 9.7 103.4 1.0X +hour of timestamp wholestage on 985 992 8 10.2 98.5 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 1041 1042 1 9.6 104.1 1.0X -minute of timestamp wholestage on 971 978 9 10.3 97.1 1.1X +minute of timestamp wholestage off 1040 1045 7 9.6 104.0 1.0X +minute of timestamp wholestage on 1019 1035 18 9.8 101.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 989 991 3 10.1 98.9 1.0X -second of timestamp wholestage on 986 999 12 10.1 98.6 1.0X +second of timestamp wholestage off 1031 1033 3 9.7 103.1 1.0X +second of timestamp wholestage on 986 996 7 10.1 98.6 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 305 313 12 32.8 30.5 1.0X -current_date wholestage on 302 316 17 33.1 30.2 1.0X +current_date wholestage off 313 316 3 31.9 31.3 1.0X +current_date wholestage on 320 330 9 31.2 32.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 359 388 41 27.8 35.9 1.0X -current_timestamp wholestage on 300 412 143 33.3 30.0 1.2X +current_timestamp wholestage off 311 337 36 32.1 31.1 1.0X +current_timestamp wholestage on 320 331 14 31.3 32.0 1.0X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1080 1083 5 9.3 108.0 1.0X -cast to date wholestage on 1045 1055 10 9.6 104.5 1.0X +cast to date wholestage off 1091 1091 0 9.2 109.1 1.0X +cast to date wholestage on 1048 1059 9 9.5 104.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1253 1253 1 8.0 125.3 1.0X -last_day wholestage on 1257 1272 20 8.0 125.7 1.0X +last_day wholestage off 1247 1248 1 8.0 124.7 1.0X +last_day wholestage on 1289 1301 14 7.8 128.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1129 1137 11 8.9 112.9 1.0X -next_day wholestage on 1083 1092 11 9.2 108.3 1.0X +next_day wholestage off 1133 1136 4 8.8 113.3 1.0X +next_day wholestage on 1091 1093 2 9.2 109.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1067 1071 6 9.4 106.7 1.0X -date_add wholestage on 1061 1072 7 9.4 106.1 1.0X +date_add wholestage off 1065 1067 4 9.4 106.5 1.0X +date_add wholestage on 1078 1081 3 9.3 107.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1065 1068 4 9.4 106.5 1.0X -date_sub wholestage on 1065 1072 6 9.4 106.5 1.0X +date_sub wholestage off 1056 1057 0 9.5 105.6 1.0X +date_sub wholestage on 1078 1110 59 9.3 107.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1404 1409 7 7.1 140.4 1.0X -add_months wholestage on 1429 1439 15 7.0 142.9 1.0X +add_months wholestage off 1398 1401 4 7.2 139.8 1.0X +add_months wholestage on 1436 1442 5 7.0 143.6 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 5642 5741 140 1.8 564.2 1.0X -format date wholestage on 5874 5900 18 1.7 587.4 1.0X +format date wholestage off 5959 6090 186 1.7 595.9 1.0X +format date wholestage on 5571 5592 16 1.8 557.1 1.1X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 7504 7515 15 1.3 750.4 1.0X -from_unixtime wholestage on 7579 7612 37 1.3 757.9 1.0X +from_unixtime wholestage off 7382 7384 3 1.4 738.2 1.0X +from_unixtime wholestage on 7640 7665 28 1.3 764.0 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1250 1254 6 8.0 125.0 1.0X -from_utc_timestamp wholestage on 1287 1294 10 7.8 128.7 1.0X +from_utc_timestamp wholestage off 1233 1235 3 8.1 123.3 1.0X +from_utc_timestamp wholestage on 1296 1317 13 7.7 129.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1916 1918 2 5.2 191.6 1.0X -to_utc_timestamp wholestage on 1781 1792 12 5.6 178.1 1.1X +to_utc_timestamp wholestage off 1786 1788 4 5.6 178.6 1.0X +to_utc_timestamp wholestage on 1751 1761 11 5.7 175.1 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 347 354 9 28.8 34.7 1.0X -cast interval wholestage on 308 313 3 32.5 30.8 1.1X +cast interval wholestage off 346 354 11 28.9 34.6 1.0X +cast interval wholestage on 326 338 13 30.6 32.6 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1884 1895 15 5.3 188.4 1.0X -datediff wholestage on 1824 1833 9 5.5 182.4 1.0X +datediff wholestage off 1842 1850 11 5.4 184.2 1.0X +datediff wholestage on 1817 1822 9 5.5 181.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 5674 5685 16 1.8 567.4 1.0X -months_between wholestage on 5600 5616 14 1.8 560.0 1.0X +months_between wholestage off 5506 5522 22 1.8 550.6 1.0X +months_between wholestage on 5499 5512 8 1.8 549.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 1971 2180 295 0.5 1971.1 1.0X -window wholestage on 47323 47354 35 0.0 47322.7 0.0X +window wholestage off 2349 2405 80 0.4 2348.8 1.0X +window wholestage on 48159 48205 50 0.0 48159.0 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2571 2588 23 3.9 257.1 1.0X -date_trunc YEAR wholestage on 2581 2591 6 3.9 258.1 1.0X +date_trunc YEAR wholestage off 2541 2559 25 3.9 254.1 1.0X +date_trunc YEAR wholestage on 2484 2498 13 4.0 248.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2564 2568 5 3.9 256.4 1.0X -date_trunc YYYY wholestage on 2583 2592 6 3.9 258.3 1.0X +date_trunc YYYY wholestage off 2518 2521 3 4.0 251.8 1.0X +date_trunc YYYY wholestage on 2486 2499 10 4.0 248.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2574 2577 5 3.9 257.4 1.0X -date_trunc YY wholestage on 2579 2588 8 3.9 257.9 1.0X +date_trunc YY wholestage off 2525 2529 6 4.0 252.5 1.0X +date_trunc YY wholestage on 2488 2500 16 4.0 248.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2598 2599 1 3.8 259.8 1.0X -date_trunc MON wholestage on 2593 2604 11 3.9 259.3 1.0X +date_trunc MON wholestage off 2499 2499 0 4.0 249.9 1.0X +date_trunc MON wholestage on 2473 2484 12 4.0 247.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2599 2613 19 3.8 259.9 1.0X -date_trunc MONTH wholestage on 2604 2610 5 3.8 260.4 1.0X +date_trunc MONTH wholestage off 2487 2498 16 4.0 248.7 1.0X +date_trunc MONTH wholestage on 2478 2484 5 4.0 247.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2605 2613 10 3.8 260.5 1.0X -date_trunc MM wholestage on 2595 2601 4 3.9 259.5 1.0X +date_trunc MM wholestage off 2486 2497 14 4.0 248.6 1.0X +date_trunc MM wholestage on 2485 2490 4 4.0 248.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 2361 2367 9 4.2 236.1 1.0X -date_trunc DAY wholestage on 2370 2383 11 4.2 237.0 1.0X +date_trunc DAY wholestage off 2389 2389 1 4.2 238.9 1.0X +date_trunc DAY wholestage on 2350 2358 8 4.3 235.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 2376 2385 13 4.2 237.6 1.0X -date_trunc DD wholestage on 2368 2372 3 4.2 236.8 1.0X +date_trunc DD wholestage off 2392 2392 1 4.2 239.2 1.0X +date_trunc DD wholestage on 2354 2359 6 4.2 235.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 2399 2404 7 4.2 239.9 1.0X -date_trunc HOUR wholestage on 2387 2399 14 4.2 238.7 1.0X +date_trunc HOUR wholestage off 2421 2426 7 4.1 242.1 1.0X +date_trunc HOUR wholestage on 2413 2418 6 4.1 241.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 357 370 18 28.0 35.7 1.0X -date_trunc MINUTE wholestage on 373 378 5 26.8 37.3 1.0X +date_trunc MINUTE wholestage off 358 360 3 27.9 35.8 1.0X +date_trunc MINUTE wholestage on 345 357 11 29.0 34.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 382 382 1 26.2 38.2 1.0X -date_trunc SECOND wholestage on 372 380 8 26.9 37.2 1.0X +date_trunc SECOND wholestage off 383 385 4 26.1 38.3 1.0X +date_trunc SECOND wholestage on 350 358 13 28.5 35.0 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2501 2512 14 4.0 250.1 1.0X -date_trunc WEEK wholestage on 2484 2498 12 4.0 248.4 1.0X +date_trunc WEEK wholestage off 2445 2446 1 4.1 244.5 1.0X +date_trunc WEEK wholestage on 2407 2412 5 4.2 240.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3407 3410 4 2.9 340.7 1.0X -date_trunc QUARTER wholestage on 3371 3378 5 3.0 337.1 1.0X +date_trunc QUARTER wholestage off 3301 3305 5 3.0 330.1 1.0X +date_trunc QUARTER wholestage on 3279 3293 17 3.0 327.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 318 319 2 31.4 31.8 1.0X -trunc year wholestage on 343 347 8 29.2 34.3 0.9X +trunc year wholestage off 316 316 0 31.7 31.6 1.0X +trunc year wholestage on 311 317 7 32.1 31.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 315 316 2 31.7 31.5 1.0X -trunc yyyy wholestage on 342 355 18 29.2 34.2 0.9X +trunc yyyy wholestage off 316 320 5 31.6 31.6 1.0X +trunc yyyy wholestage on 316 335 19 31.7 31.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 317 318 1 31.5 31.7 1.0X -trunc yy wholestage on 339 348 12 29.5 33.9 0.9X +trunc yy wholestage off 322 324 4 31.1 32.2 1.0X +trunc yy wholestage on 308 312 5 32.4 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 317 319 3 31.5 31.7 1.0X -trunc mon wholestage on 337 349 10 29.7 33.7 0.9X +trunc mon wholestage off 313 315 3 31.9 31.3 1.0X +trunc mon wholestage on 308 311 4 32.5 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 315 316 1 31.7 31.5 1.0X -trunc month wholestage on 341 352 14 29.3 34.1 0.9X +trunc month wholestage off 312 313 1 32.0 31.2 1.0X +trunc month wholestage on 308 314 7 32.5 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 314 315 1 31.8 31.4 1.0X -trunc mm wholestage on 343 348 8 29.2 34.3 0.9X +trunc mm wholestage off 311 312 1 32.2 31.1 1.0X +trunc mm wholestage on 306 314 7 32.6 30.6 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 163 165 2 6.1 163.2 1.0X -to timestamp str wholestage on 158 159 1 6.3 157.7 1.0X +to timestamp str wholestage off 169 170 1 5.9 169.1 1.0X +to timestamp str wholestage on 165 172 8 6.1 165.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1490 1491 2 0.7 1489.5 1.0X -to_timestamp wholestage on 1522 1530 10 0.7 1522.0 1.0X +to_timestamp wholestage off 1628 1629 2 0.6 1628.2 1.0X +to_timestamp wholestage on 1398 1405 7 0.7 1397.6 1.2X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1561 1574 18 0.6 1561.4 1.0X -to_unix_timestamp wholestage on 1531 1540 9 0.7 1531.4 1.0X +to_unix_timestamp wholestage off 1382 1382 0 0.7 1381.8 1.0X +to_unix_timestamp wholestage on 1398 1399 2 0.7 1397.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 206 219 18 4.9 206.1 1.0X -to date str wholestage on 211 214 4 4.7 211.1 1.0X +to date str wholestage off 206 209 4 4.8 206.3 1.0X +to date str wholestage on 213 216 3 4.7 212.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3195 3208 18 0.3 3195.3 1.0X -to_date wholestage on 3179 3189 12 0.3 3179.2 1.0X +to_date wholestage off 3560 3567 10 0.3 3559.7 1.0X +to_date wholestage on 3578 3596 23 0.3 3578.1 1.0X ================================================================================================ @@ -422,8 +422,9 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz To/from java.sql.Timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Timestamp 1390 1400 9 3.6 277.9 1.0X -Collect longs 1781 2342 496 2.8 356.2 0.8X -Collect timestamps 5837 6037 180 0.9 1167.3 0.2X +From java.sql.Date 460 461 1 10.9 91.9 1.0X +From java.sql.Timestamp 1480 1491 13 3.4 296.0 0.3X +Collect longs 1868 2160 425 2.7 373.5 0.2X +Collect timestamps 5418 6071 574 0.9 1083.7 0.1X From b174c1a23df95b9d93f36e43963a22fe1b885668 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 13 Apr 2020 11:21:10 +0000 Subject: [PATCH 06/11] Re-gen DateTimeBenchmark results on JDK 8 --- .../benchmarks/DateTimeBenchmark-results.txt | 220 +++++++++--------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-results.txt b/sql/core/benchmarks/DateTimeBenchmark-results.txt index 261315cc0a52..6b90bf51bf70 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 411 440 41 24.3 41.1 1.0X -cast to timestamp wholestage on 372 399 25 26.9 37.2 1.1X +cast to timestamp wholestage off 403 439 51 24.8 40.3 1.0X +cast to timestamp wholestage on 351 381 41 28.5 35.1 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1311 1319 11 7.6 131.1 1.0X -year of timestamp wholestage on 1212 1242 18 8.2 121.2 1.1X +year of timestamp wholestage off 1307 1331 34 7.7 130.7 1.0X +year of timestamp wholestage on 1356 1369 14 7.4 135.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1431 1434 5 7.0 143.1 1.0X -quarter of timestamp wholestage on 1375 1382 9 7.3 137.5 1.0X +quarter of timestamp wholestage off 1449 1459 14 6.9 144.9 1.0X +quarter of timestamp wholestage on 1409 1420 8 7.1 140.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1228 1233 7 8.1 122.8 1.0X -month of timestamp wholestage on 1222 1231 6 8.2 122.2 1.0X +month of timestamp wholestage off 1219 1224 8 8.2 121.9 1.0X +month of timestamp wholestage on 1251 1261 10 8.0 125.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1962 1966 6 5.1 196.2 1.0X -weekofyear of timestamp wholestage on 1937 1942 6 5.2 193.7 1.0X +weekofyear of timestamp wholestage off 1900 1903 3 5.3 190.0 1.0X +weekofyear of timestamp wholestage on 1882 1892 7 5.3 188.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1210 1221 15 8.3 121.0 1.0X -day of timestamp wholestage on 1218 1228 7 8.2 121.8 1.0X +day of timestamp wholestage off 1244 1246 2 8.0 124.4 1.0X +day of timestamp wholestage on 1242 1248 8 8.1 124.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1279 1289 14 7.8 127.9 1.0X -dayofyear of timestamp wholestage on 1255 1268 11 8.0 125.5 1.0X +dayofyear of timestamp wholestage off 1301 1308 11 7.7 130.1 1.0X +dayofyear of timestamp wholestage on 1283 1293 6 7.8 128.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1220 1224 5 8.2 122.0 1.0X -dayofmonth of timestamp wholestage on 1214 1219 4 8.2 121.4 1.0X +dayofmonth of timestamp wholestage off 1230 1234 5 8.1 123.0 1.0X +dayofmonth of timestamp wholestage on 1235 1247 10 8.1 123.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1399 1401 2 7.1 139.9 1.0X -dayofweek of timestamp wholestage on 1379 1384 5 7.2 137.9 1.0X +dayofweek of timestamp wholestage off 1413 1415 2 7.1 141.3 1.0X +dayofweek of timestamp wholestage on 1401 1408 6 7.1 140.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1345 1349 5 7.4 134.5 1.0X -weekday of timestamp wholestage on 1313 1319 6 7.6 131.3 1.0X +weekday of timestamp wholestage off 1353 1353 0 7.4 135.3 1.0X +weekday of timestamp wholestage on 1333 1340 7 7.5 133.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 970 979 12 10.3 97.0 1.0X -hour of timestamp wholestage on 953 960 8 10.5 95.3 1.0X +hour of timestamp wholestage off 967 967 1 10.3 96.7 1.0X +hour of timestamp wholestage on 982 991 7 10.2 98.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 1002 1008 9 10.0 100.2 1.0X -minute of timestamp wholestage on 953 960 12 10.5 95.3 1.1X +minute of timestamp wholestage off 1032 1034 3 9.7 103.2 1.0X +minute of timestamp wholestage on 980 985 4 10.2 98.0 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 1000 1000 0 10.0 100.0 1.0X -second of timestamp wholestage on 952 959 4 10.5 95.2 1.0X +second of timestamp wholestage off 968 968 1 10.3 96.8 1.0X +second of timestamp wholestage on 973 980 6 10.3 97.3 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 295 301 9 33.9 29.5 1.0X -current_date wholestage on 285 293 13 35.1 28.5 1.0X +current_date wholestage off 289 291 3 34.7 28.9 1.0X +current_date wholestage on 303 305 3 33.0 30.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 292 302 15 34.3 29.2 1.0X -current_timestamp wholestage on 278 296 18 36.0 27.8 1.0X +current_timestamp wholestage off 295 304 13 33.9 29.5 1.0X +current_timestamp wholestage on 307 323 16 32.6 30.7 1.0X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1050 1052 3 9.5 105.0 1.0X -cast to date wholestage on 1010 1015 6 9.9 101.0 1.0X +cast to date wholestage off 1068 1072 6 9.4 106.8 1.0X +cast to date wholestage on 1030 1041 11 9.7 103.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1245 1251 9 8.0 124.5 1.0X -last_day wholestage on 1240 1255 17 8.1 124.0 1.0X +last_day wholestage off 1262 1262 1 7.9 126.2 1.0X +last_day wholestage on 1261 1272 8 7.9 126.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1124 1127 4 8.9 112.4 1.0X -next_day wholestage on 1057 1063 8 9.5 105.7 1.1X +next_day wholestage off 1109 1112 5 9.0 110.9 1.0X +next_day wholestage on 1082 1088 9 9.2 108.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1042 1043 3 9.6 104.2 1.0X -date_add wholestage on 1035 1043 7 9.7 103.5 1.0X +date_add wholestage off 1043 1065 31 9.6 104.3 1.0X +date_add wholestage on 1058 1060 3 9.5 105.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1053 1057 5 9.5 105.3 1.0X -date_sub wholestage on 1037 1044 8 9.6 103.7 1.0X +date_sub wholestage off 1046 1049 5 9.6 104.6 1.0X +date_sub wholestage on 1054 1067 11 9.5 105.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1364 1368 6 7.3 136.4 1.0X -add_months wholestage on 1389 1392 2 7.2 138.9 1.0X +add_months wholestage off 1377 1378 1 7.3 137.7 1.0X +add_months wholestage on 1432 1443 15 7.0 143.2 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 5686 5691 8 1.8 568.6 1.0X -format date wholestage on 5568 5580 11 1.8 556.8 1.0X +format date wholestage off 6097 6174 108 1.6 609.7 1.0X +format date wholestage on 6061 6075 21 1.6 606.1 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 8603 8603 0 1.2 860.3 1.0X -from_unixtime wholestage on 8595 8607 8 1.2 859.5 1.0X +from_unixtime wholestage off 9051 9055 5 1.1 905.1 1.0X +from_unixtime wholestage on 9069 9084 16 1.1 906.9 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1100 1105 8 9.1 110.0 1.0X -from_utc_timestamp wholestage on 1121 1126 7 8.9 112.1 1.0X +from_utc_timestamp wholestage off 1144 1144 0 8.7 114.4 1.0X +from_utc_timestamp wholestage on 1141 1147 8 8.8 114.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1629 1631 3 6.1 162.9 1.0X -to_utc_timestamp wholestage on 1592 1600 11 6.3 159.2 1.0X +to_utc_timestamp wholestage off 1418 1422 6 7.1 141.8 1.0X +to_utc_timestamp wholestage on 1395 1402 6 7.2 139.5 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 333 333 0 30.0 33.3 1.0X -cast interval wholestage on 300 306 4 33.3 30.0 1.1X +cast interval wholestage off 336 341 7 29.8 33.6 1.0X +cast interval wholestage on 324 331 5 30.9 32.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1820 1826 9 5.5 182.0 1.0X -datediff wholestage on 1760 1764 7 5.7 176.0 1.0X +datediff wholestage off 1812 1820 10 5.5 181.2 1.0X +datediff wholestage on 1779 1788 12 5.6 177.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 4837 4847 15 2.1 483.7 1.0X -months_between wholestage on 4798 4806 10 2.1 479.8 1.0X +months_between wholestage off 4689 4691 3 2.1 468.9 1.0X +months_between wholestage on 4627 4635 8 2.2 462.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 1859 2013 219 0.5 1858.9 1.0X -window wholestage on 46971 47037 57 0.0 46970.9 0.0X +window wholestage off 1929 2013 118 0.5 1929.1 1.0X +window wholestage on 45197 45310 81 0.0 45196.8 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2371 2371 0 4.2 237.1 1.0X -date_trunc YEAR wholestage on 2333 2346 17 4.3 233.3 1.0X +date_trunc YEAR wholestage off 2278 2280 2 4.4 227.8 1.0X +date_trunc YEAR wholestage on 2234 2243 12 4.5 223.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2369 2373 6 4.2 236.9 1.0X -date_trunc YYYY wholestage on 2346 2352 5 4.3 234.6 1.0X +date_trunc YYYY wholestage off 2277 2282 7 4.4 227.7 1.0X +date_trunc YYYY wholestage on 2234 2241 6 4.5 223.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2370 2374 6 4.2 237.0 1.0X -date_trunc YY wholestage on 2339 2343 3 4.3 233.9 1.0X +date_trunc YY wholestage off 2278 2287 13 4.4 227.8 1.0X +date_trunc YY wholestage on 2230 2235 5 4.5 223.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2340 2341 1 4.3 234.0 1.0X -date_trunc MON wholestage on 2330 2337 13 4.3 233.0 1.0X +date_trunc MON wholestage off 2231 2240 12 4.5 223.1 1.0X +date_trunc MON wholestage on 2209 2214 3 4.5 220.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2349 2352 4 4.3 234.9 1.0X -date_trunc MONTH wholestage on 2330 2341 11 4.3 233.0 1.0X +date_trunc MONTH wholestage off 2239 2240 1 4.5 223.9 1.0X +date_trunc MONTH wholestage on 2206 2211 5 4.5 220.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2339 2340 3 4.3 233.9 1.0X -date_trunc MM wholestage on 2333 2341 7 4.3 233.3 1.0X +date_trunc MM wholestage off 2237 2239 3 4.5 223.7 1.0X +date_trunc MM wholestage on 2205 2210 3 4.5 220.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 2131 2144 18 4.7 213.1 1.0X -date_trunc DAY wholestage on 2108 2117 6 4.7 210.8 1.0X +date_trunc DAY wholestage off 1954 1954 0 5.1 195.4 1.0X +date_trunc DAY wholestage on 1861 1864 3 5.4 186.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 2128 2145 25 4.7 212.8 1.0X -date_trunc DD wholestage on 2107 2112 5 4.7 210.7 1.0X +date_trunc DD wholestage off 1940 1942 3 5.2 194.0 1.0X +date_trunc DD wholestage on 1861 1869 12 5.4 186.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 2020 2025 8 5.0 202.0 1.0X -date_trunc HOUR wholestage on 2031 2038 9 4.9 203.1 1.0X +date_trunc HOUR wholestage off 1975 1975 0 5.1 197.5 1.0X +date_trunc HOUR wholestage on 2312 2360 28 4.3 231.2 0.9X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 349 372 34 28.7 34.9 1.0X -date_trunc MINUTE wholestage on 357 374 22 28.0 35.7 1.0X +date_trunc MINUTE wholestage off 367 368 0 27.2 36.7 1.0X +date_trunc MINUTE wholestage on 324 335 14 30.9 32.4 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 367 374 10 27.3 36.7 1.0X -date_trunc SECOND wholestage on 369 389 41 27.1 36.9 1.0X +date_trunc SECOND wholestage off 372 382 15 26.9 37.2 1.0X +date_trunc SECOND wholestage on 319 326 6 31.3 31.9 1.2X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2274 2282 12 4.4 227.4 1.0X -date_trunc WEEK wholestage on 2231 2241 11 4.5 223.1 1.0X +date_trunc WEEK wholestage off 2199 2202 5 4.5 219.9 1.0X +date_trunc WEEK wholestage on 2106 2111 6 4.7 210.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3072 3074 2 3.3 307.2 1.0X -date_trunc QUARTER wholestage on 3109 3120 15 3.2 310.9 1.0X +date_trunc QUARTER wholestage off 3080 3085 8 3.2 308.0 1.0X +date_trunc QUARTER wholestage on 3013 3022 9 3.3 301.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 322 329 11 31.1 32.2 1.0X -trunc year wholestage on 383 412 25 26.1 38.3 0.8X +trunc year wholestage off 329 330 2 30.4 32.9 1.0X +trunc year wholestage on 331 351 31 30.2 33.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 326 335 13 30.7 32.6 1.0X -trunc yyyy wholestage on 319 404 81 31.4 31.9 1.0X +trunc yyyy wholestage off 325 337 16 30.7 32.5 1.0X +trunc yyyy wholestage on 329 338 8 30.4 32.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 318 320 2 31.4 31.8 1.0X -trunc yy wholestage on 366 402 35 27.3 36.6 0.9X +trunc yy wholestage off 322 322 0 31.1 32.2 1.0X +trunc yy wholestage on 333 370 39 30.1 33.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 317 318 1 31.6 31.7 1.0X -trunc mon wholestage on 337 382 30 29.7 33.7 0.9X +trunc mon wholestage off 323 325 2 30.9 32.3 1.0X +trunc mon wholestage on 318 349 29 31.4 31.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 317 319 3 31.5 31.7 1.0X -trunc month wholestage on 332 389 39 30.1 33.2 1.0X +trunc month wholestage off 320 320 1 31.3 32.0 1.0X +trunc month wholestage on 308 339 35 32.5 30.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 317 318 2 31.6 31.7 1.0X -trunc mm wholestage on 333 373 31 30.0 33.3 1.0X +trunc mm wholestage off 317 319 2 31.5 31.7 1.0X +trunc mm wholestage on 318 344 19 31.5 31.8 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 213 215 2 4.7 213.0 1.0X -to timestamp str wholestage on 209 211 3 4.8 208.7 1.0X +to timestamp str wholestage off 211 211 1 4.7 210.6 1.0X +to timestamp str wholestage on 204 211 6 4.9 204.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1963 1970 10 0.5 1962.8 1.0X -to_timestamp wholestage on 1756 1759 6 0.6 1755.6 1.1X +to_timestamp wholestage off 1765 1767 3 0.6 1765.2 1.0X +to_timestamp wholestage on 1767 1771 6 0.6 1767.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1818 1827 12 0.5 1818.3 1.0X -to_unix_timestamp wholestage on 1829 1836 6 0.5 1828.7 1.0X +to_unix_timestamp wholestage off 1780 1780 0 0.6 1780.2 1.0X +to_unix_timestamp wholestage on 1755 1761 7 0.6 1754.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 266 271 6 3.8 266.4 1.0X -to date str wholestage on 258 260 2 3.9 258.2 1.0X +to date str wholestage off 262 272 13 3.8 262.5 1.0X +to date str wholestage on 258 261 3 3.9 258.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3814 3816 3 0.3 3813.8 1.0X -to_date wholestage on 3650 3659 8 0.3 3650.0 1.0X +to_date wholestage off 3685 3713 39 0.3 3685.0 1.0X +to_date wholestage on 3563 3586 19 0.3 3562.6 1.0X ================================================================================================ @@ -422,9 +422,9 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz To/from java.sql.Timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Date 418 427 13 12.0 83.5 1.0X -From java.sql.Timestamp 1998 2003 5 2.5 399.7 0.2X -Collect longs 1956 2765 721 2.6 391.3 0.2X -Collect timestamps 6209 7101 1177 0.8 1241.8 0.1X +From java.sql.Date 427 434 7 11.7 85.3 1.0X +From java.sql.Timestamp 2013 2021 7 2.5 402.7 0.2X +Collect longs 1250 1943 1091 4.0 250.1 0.3X +Collect timestamps 6059 6954 1345 0.8 1211.7 0.1X From e6b514f465ea504a107af81bb4390a5386b641bd Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 13 Apr 2020 17:53:03 +0000 Subject: [PATCH 07/11] Change benchmark title --- .../spark/sql/execution/benchmark/DateTimeBenchmark.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala index eb643907ffb6..5fa5b9b06a60 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/DateTimeBenchmark.scala @@ -131,7 +131,7 @@ object DateTimeBenchmark extends SqlBasedBenchmark { import spark.implicits._ val rowsNum = 5000000 val numIters = 3 - val benchmark = new Benchmark("To/from java.sql.Timestamp", rowsNum, output = output) + val benchmark = new Benchmark("To/from Java's date-time", rowsNum, output = output) benchmark.addCase("From java.sql.Date", numIters) { _ => spark.range(rowsNum) .map(millis => new java.sql.Date(millis)) From bcc855905d5eee3caf94a66720c8601c8b639599 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 13 Apr 2020 18:18:53 +0000 Subject: [PATCH 08/11] Re-gen DateTimeBenchmark results on JDK 8 --- .../benchmarks/DateTimeBenchmark-results.txt | 220 +++++++++--------- 1 file changed, 110 insertions(+), 110 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-results.txt b/sql/core/benchmarks/DateTimeBenchmark-results.txt index 6b90bf51bf70..1ede02bb5039 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 403 439 51 24.8 40.3 1.0X -cast to timestamp wholestage on 351 381 41 28.5 35.1 1.1X +cast to timestamp wholestage off 406 425 27 24.6 40.6 1.0X +cast to timestamp wholestage on 357 380 17 28.0 35.7 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1307 1331 34 7.7 130.7 1.0X -year of timestamp wholestage on 1356 1369 14 7.4 135.6 1.0X +year of timestamp wholestage off 1304 1314 14 7.7 130.4 1.0X +year of timestamp wholestage on 1524 1532 9 6.6 152.4 0.9X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1449 1459 14 6.9 144.9 1.0X -quarter of timestamp wholestage on 1409 1420 8 7.1 140.9 1.0X +quarter of timestamp wholestage off 1452 1463 16 6.9 145.2 1.0X +quarter of timestamp wholestage on 1381 1394 8 7.2 138.1 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1219 1224 8 8.2 121.9 1.0X -month of timestamp wholestage on 1251 1261 10 8.0 125.1 1.0X +month of timestamp wholestage off 1231 1239 11 8.1 123.1 1.0X +month of timestamp wholestage on 1216 1227 9 8.2 121.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1900 1903 3 5.3 190.0 1.0X -weekofyear of timestamp wholestage on 1882 1892 7 5.3 188.2 1.0X +weekofyear of timestamp wholestage off 1884 1885 1 5.3 188.4 1.0X +weekofyear of timestamp wholestage on 1844 1852 7 5.4 184.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1244 1246 2 8.0 124.4 1.0X -day of timestamp wholestage on 1242 1248 8 8.1 124.2 1.0X +day of timestamp wholestage off 1219 1219 1 8.2 121.9 1.0X +day of timestamp wholestage on 1201 1211 10 8.3 120.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1301 1308 11 7.7 130.1 1.0X -dayofyear of timestamp wholestage on 1283 1293 6 7.8 128.3 1.0X +dayofyear of timestamp wholestage off 1295 1300 7 7.7 129.5 1.0X +dayofyear of timestamp wholestage on 1241 1246 9 8.1 124.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1230 1234 5 8.1 123.0 1.0X -dayofmonth of timestamp wholestage on 1235 1247 10 8.1 123.5 1.0X +dayofmonth of timestamp wholestage off 1239 1245 9 8.1 123.9 1.0X +dayofmonth of timestamp wholestage on 1204 1209 5 8.3 120.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1413 1415 2 7.1 141.3 1.0X -dayofweek of timestamp wholestage on 1401 1408 6 7.1 140.1 1.0X +dayofweek of timestamp wholestage off 1409 1412 4 7.1 140.9 1.0X +dayofweek of timestamp wholestage on 1356 1362 6 7.4 135.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1353 1353 0 7.4 135.3 1.0X -weekday of timestamp wholestage on 1333 1340 7 7.5 133.3 1.0X +weekday of timestamp wholestage off 1348 1352 5 7.4 134.8 1.0X +weekday of timestamp wholestage on 1296 1299 5 7.7 129.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 967 967 1 10.3 96.7 1.0X -hour of timestamp wholestage on 982 991 7 10.2 98.2 1.0X +hour of timestamp wholestage off 979 985 9 10.2 97.9 1.0X +hour of timestamp wholestage on 939 946 5 10.6 93.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 1032 1034 3 9.7 103.2 1.0X -minute of timestamp wholestage on 980 985 4 10.2 98.0 1.1X +minute of timestamp wholestage off 971 973 3 10.3 97.1 1.0X +minute of timestamp wholestage on 936 938 2 10.7 93.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 968 968 1 10.3 96.8 1.0X -second of timestamp wholestage on 973 980 6 10.3 97.3 1.0X +second of timestamp wholestage off 1007 1012 8 9.9 100.7 1.0X +second of timestamp wholestage on 935 940 5 10.7 93.5 1.1X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 289 291 3 34.7 28.9 1.0X -current_date wholestage on 303 305 3 33.0 30.3 1.0X +current_date wholestage off 295 296 1 33.9 29.5 1.0X +current_date wholestage on 262 269 11 38.1 26.2 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 295 304 13 33.9 29.5 1.0X -current_timestamp wholestage on 307 323 16 32.6 30.7 1.0X +current_timestamp wholestage off 301 304 3 33.2 30.1 1.0X +current_timestamp wholestage on 265 279 20 37.7 26.5 1.1X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1068 1072 6 9.4 106.8 1.0X -cast to date wholestage on 1030 1041 11 9.7 103.0 1.0X +cast to date wholestage off 1067 1080 18 9.4 106.7 1.0X +cast to date wholestage on 986 991 6 10.1 98.6 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1262 1262 1 7.9 126.2 1.0X -last_day wholestage on 1261 1272 8 7.9 126.1 1.0X +last_day wholestage off 1252 1255 4 8.0 125.2 1.0X +last_day wholestage on 1220 1230 7 8.2 122.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1109 1112 5 9.0 110.9 1.0X -next_day wholestage on 1082 1088 9 9.2 108.2 1.0X +next_day wholestage off 1102 1103 1 9.1 110.2 1.0X +next_day wholestage on 1057 1062 7 9.5 105.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1043 1065 31 9.6 104.3 1.0X -date_add wholestage on 1058 1060 3 9.5 105.8 1.0X +date_add wholestage off 1055 1055 1 9.5 105.5 1.0X +date_add wholestage on 1032 1046 15 9.7 103.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1046 1049 5 9.6 104.6 1.0X -date_sub wholestage on 1054 1067 11 9.5 105.4 1.0X +date_sub wholestage off 1049 1055 8 9.5 104.9 1.0X +date_sub wholestage on 1033 1043 12 9.7 103.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1377 1378 1 7.3 137.7 1.0X -add_months wholestage on 1432 1443 15 7.0 143.2 1.0X +add_months wholestage off 1378 1379 1 7.3 137.8 1.0X +add_months wholestage on 1393 1404 9 7.2 139.3 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 6097 6174 108 1.6 609.7 1.0X -format date wholestage on 6061 6075 21 1.6 606.1 1.0X +format date wholestage off 5553 5572 26 1.8 555.3 1.0X +format date wholestage on 5553 5561 11 1.8 555.3 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 9051 9055 5 1.1 905.1 1.0X -from_unixtime wholestage on 9069 9084 16 1.1 906.9 1.0X +from_unixtime wholestage off 8767 8775 11 1.1 876.7 1.0X +from_unixtime wholestage on 8561 8579 15 1.2 856.1 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1144 1144 0 8.7 114.4 1.0X -from_utc_timestamp wholestage on 1141 1147 8 8.8 114.1 1.0X +from_utc_timestamp wholestage off 1083 1084 1 9.2 108.3 1.0X +from_utc_timestamp wholestage on 1082 1092 11 9.2 108.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1418 1422 6 7.1 141.8 1.0X -to_utc_timestamp wholestage on 1395 1402 6 7.2 139.5 1.0X +to_utc_timestamp wholestage off 1641 1645 6 6.1 164.1 1.0X +to_utc_timestamp wholestage on 1584 1592 9 6.3 158.4 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 336 341 7 29.8 33.6 1.0X -cast interval wholestage on 324 331 5 30.9 32.4 1.0X +cast interval wholestage off 340 341 2 29.4 34.0 1.0X +cast interval wholestage on 285 294 13 35.0 28.5 1.2X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1812 1820 10 5.5 181.2 1.0X -datediff wholestage on 1779 1788 12 5.6 177.9 1.0X +datediff wholestage off 1827 1837 14 5.5 182.7 1.0X +datediff wholestage on 1742 1747 5 5.7 174.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 4689 4691 3 2.1 468.9 1.0X -months_between wholestage on 4627 4635 8 2.2 462.7 1.0X +months_between wholestage off 5346 5349 4 1.9 534.6 1.0X +months_between wholestage on 5277 5282 5 1.9 527.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 1929 2013 118 0.5 1929.1 1.0X -window wholestage on 45197 45310 81 0.0 45196.8 0.0X +window wholestage off 1874 1946 102 0.5 1873.6 1.0X +window wholestage on 44319 44387 58 0.0 44318.6 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2278 2280 2 4.4 227.8 1.0X -date_trunc YEAR wholestage on 2234 2243 12 4.5 223.4 1.0X +date_trunc YEAR wholestage off 2380 2392 17 4.2 238.0 1.0X +date_trunc YEAR wholestage on 2290 2305 15 4.4 229.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2277 2282 7 4.4 227.7 1.0X -date_trunc YYYY wholestage on 2234 2241 6 4.5 223.4 1.0X +date_trunc YYYY wholestage off 2380 2385 8 4.2 238.0 1.0X +date_trunc YYYY wholestage on 2288 2296 6 4.4 228.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2278 2287 13 4.4 227.8 1.0X -date_trunc YY wholestage on 2230 2235 5 4.5 223.0 1.0X +date_trunc YY wholestage off 2381 2382 1 4.2 238.1 1.0X +date_trunc YY wholestage on 2284 2294 7 4.4 228.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2231 2240 12 4.5 223.1 1.0X -date_trunc MON wholestage on 2209 2214 3 4.5 220.9 1.0X +date_trunc MON wholestage off 2357 2365 11 4.2 235.7 1.0X +date_trunc MON wholestage on 2308 2315 5 4.3 230.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2239 2240 1 4.5 223.9 1.0X -date_trunc MONTH wholestage on 2206 2211 5 4.5 220.6 1.0X +date_trunc MONTH wholestage off 2360 2360 1 4.2 236.0 1.0X +date_trunc MONTH wholestage on 2311 2315 5 4.3 231.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2237 2239 3 4.5 223.7 1.0X -date_trunc MM wholestage on 2205 2210 3 4.5 220.5 1.0X +date_trunc MM wholestage off 2354 2363 11 4.2 235.4 1.0X +date_trunc MM wholestage on 2310 2314 2 4.3 231.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 1954 1954 0 5.1 195.4 1.0X -date_trunc DAY wholestage on 1861 1864 3 5.4 186.1 1.0X +date_trunc DAY wholestage off 2210 2211 1 4.5 221.0 1.0X +date_trunc DAY wholestage on 2137 2152 15 4.7 213.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 1940 1942 3 5.2 194.0 1.0X -date_trunc DD wholestage on 1861 1869 12 5.4 186.1 1.0X +date_trunc DD wholestage off 2209 2211 3 4.5 220.9 1.0X +date_trunc DD wholestage on 2136 2141 6 4.7 213.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 1975 1975 0 5.1 197.5 1.0X -date_trunc HOUR wholestage on 2312 2360 28 4.3 231.2 0.9X +date_trunc HOUR wholestage off 2019 2024 7 5.0 201.9 1.0X +date_trunc HOUR wholestage on 1995 2001 5 5.0 199.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 367 368 0 27.2 36.7 1.0X -date_trunc MINUTE wholestage on 324 335 14 30.9 32.4 1.1X +date_trunc MINUTE wholestage off 386 389 4 25.9 38.6 1.0X +date_trunc MINUTE wholestage on 321 332 19 31.2 32.1 1.2X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 372 382 15 26.9 37.2 1.0X -date_trunc SECOND wholestage on 319 326 6 31.3 31.9 1.2X +date_trunc SECOND wholestage off 373 377 5 26.8 37.3 1.0X +date_trunc SECOND wholestage on 412 417 3 24.3 41.2 0.9X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2199 2202 5 4.5 219.9 1.0X -date_trunc WEEK wholestage on 2106 2111 6 4.7 210.6 1.0X +date_trunc WEEK wholestage off 2258 2263 7 4.4 225.8 1.0X +date_trunc WEEK wholestage on 2189 2193 3 4.6 218.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3080 3085 8 3.2 308.0 1.0X -date_trunc QUARTER wholestage on 3013 3022 9 3.3 301.3 1.0X +date_trunc QUARTER wholestage off 3094 3100 9 3.2 309.4 1.0X +date_trunc QUARTER wholestage on 3049 3055 10 3.3 304.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 329 330 2 30.4 32.9 1.0X -trunc year wholestage on 331 351 31 30.2 33.1 1.0X +trunc year wholestage off 323 324 2 31.0 32.3 1.0X +trunc year wholestage on 308 344 47 32.4 30.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 325 337 16 30.7 32.5 1.0X -trunc yyyy wholestage on 329 338 8 30.4 32.9 1.0X +trunc yyyy wholestage off 323 327 6 31.0 32.3 1.0X +trunc yyyy wholestage on 312 325 16 32.0 31.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 322 322 0 31.1 32.2 1.0X -trunc yy wholestage on 333 370 39 30.1 33.3 1.0X +trunc yy wholestage off 319 320 0 31.3 31.9 1.0X +trunc yy wholestage on 314 317 4 31.9 31.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 323 325 2 30.9 32.3 1.0X -trunc mon wholestage on 318 349 29 31.4 31.8 1.0X +trunc mon wholestage off 320 323 4 31.3 32.0 1.0X +trunc mon wholestage on 307 316 9 32.5 30.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ trunc month wholestage off 320 320 1 31.3 32.0 1.0X -trunc month wholestage on 308 339 35 32.5 30.8 1.0X +trunc month wholestage on 307 337 60 32.6 30.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 317 319 2 31.5 31.7 1.0X -trunc mm wholestage on 318 344 19 31.5 31.8 1.0X +trunc mm wholestage off 321 321 0 31.1 32.1 1.0X +trunc mm wholestage on 308 315 8 32.5 30.8 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 211 211 1 4.7 210.6 1.0X -to timestamp str wholestage on 204 211 6 4.9 204.0 1.0X +to timestamp str wholestage off 213 213 0 4.7 212.6 1.0X +to timestamp str wholestage on 209 211 2 4.8 209.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1765 1767 3 0.6 1765.2 1.0X -to_timestamp wholestage on 1767 1771 6 0.6 1767.4 1.0X +to_timestamp wholestage off 1866 1867 1 0.5 1866.1 1.0X +to_timestamp wholestage on 1632 1643 11 0.6 1631.6 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1780 1780 0 0.6 1780.2 1.0X -to_unix_timestamp wholestage on 1755 1761 7 0.6 1754.9 1.0X +to_unix_timestamp wholestage off 1645 1647 2 0.6 1645.0 1.0X +to_unix_timestamp wholestage on 1617 1627 12 0.6 1616.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 262 272 13 3.8 262.5 1.0X -to date str wholestage on 258 261 3 3.9 258.1 1.0X +to date str wholestage off 259 259 0 3.9 259.1 1.0X +to date str wholestage on 256 257 2 3.9 255.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3685 3713 39 0.3 3685.0 1.0X -to_date wholestage on 3563 3586 19 0.3 3562.6 1.0X +to_date wholestage off 3659 3677 25 0.3 3658.8 1.0X +to_date wholestage on 3672 3681 10 0.3 3672.4 1.0X ================================================================================================ @@ -420,11 +420,11 @@ Conversion from/to external types OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz -To/from java.sql.Timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative +To/from Java's date-time: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Date 427 434 7 11.7 85.3 1.0X -From java.sql.Timestamp 2013 2021 7 2.5 402.7 0.2X -Collect longs 1250 1943 1091 4.0 250.1 0.3X -Collect timestamps 6059 6954 1345 0.8 1211.7 0.1X +From java.sql.Date 406 413 11 12.3 81.1 1.0X +From java.sql.Timestamp 1798 1812 13 2.8 359.6 0.2X +Collect longs 1179 1889 997 4.2 235.8 0.3X +Collect timestamps 5634 7116 1284 0.9 1126.8 0.1X From bc8110be93a7912b364189f1c613cf75f19d027e Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 13 Apr 2020 19:00:50 +0000 Subject: [PATCH 09/11] Re-gen DateTimeBenchmark results on JDK 11 --- .../DateTimeBenchmark-jdk11-results.txt | 222 +++++++++--------- 1 file changed, 111 insertions(+), 111 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt index 3759adfc38c7..9f586669ecce 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 409 447 53 24.4 40.9 1.0X -cast to timestamp wholestage on 373 384 12 26.8 37.3 1.1X +cast to timestamp wholestage off 440 473 48 22.8 44.0 1.0X +cast to timestamp wholestage on 379 389 11 26.4 37.9 1.2X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1394 1444 71 7.2 139.4 1.0X -year of timestamp wholestage on 1219 1294 46 8.2 121.9 1.1X +year of timestamp wholestage off 1388 1398 15 7.2 138.8 1.0X +year of timestamp wholestage on 1298 1322 23 7.7 129.8 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1607 1610 5 6.2 160.7 1.0X -quarter of timestamp wholestage on 1589 1603 9 6.3 158.9 1.0X +quarter of timestamp wholestage off 1597 1600 4 6.3 159.7 1.0X +quarter of timestamp wholestage on 1572 1584 12 6.4 157.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1247 1247 1 8.0 124.7 1.0X -month of timestamp wholestage on 1270 1281 6 7.9 127.0 1.0X +month of timestamp wholestage off 1235 1245 15 8.1 123.5 1.0X +month of timestamp wholestage on 1256 1271 19 8.0 125.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1874 1884 15 5.3 187.4 1.0X -weekofyear of timestamp wholestage on 1859 1874 15 5.4 185.9 1.0X +weekofyear of timestamp wholestage off 2166 2176 14 4.6 216.6 1.0X +weekofyear of timestamp wholestage on 1958 1969 8 5.1 195.8 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1234 1236 2 8.1 123.4 1.0X -day of timestamp wholestage on 1268 1286 23 7.9 126.8 1.0X +day of timestamp wholestage off 1233 1235 3 8.1 123.3 1.0X +day of timestamp wholestage on 1253 1280 28 8.0 125.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1292 1293 1 7.7 129.2 1.0X -dayofyear of timestamp wholestage on 1286 1294 7 7.8 128.6 1.0X +dayofyear of timestamp wholestage off 1306 1307 1 7.7 130.6 1.0X +dayofyear of timestamp wholestage on 1295 1303 12 7.7 129.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1251 1252 0 8.0 125.1 1.0X -dayofmonth of timestamp wholestage on 1257 1271 12 8.0 125.7 1.0X +dayofmonth of timestamp wholestage off 1241 1244 5 8.1 124.1 1.0X +dayofmonth of timestamp wholestage on 1258 1270 14 7.9 125.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1414 1416 2 7.1 141.4 1.0X -dayofweek of timestamp wholestage on 1420 1432 16 7.0 142.0 1.0X +dayofweek of timestamp wholestage off 1416 1419 5 7.1 141.6 1.0X +dayofweek of timestamp wholestage on 1407 1414 6 7.1 140.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1345 1346 0 7.4 134.5 1.0X -weekday of timestamp wholestage on 1355 1361 9 7.4 135.5 1.0X +weekday of timestamp wholestage off 1352 1352 0 7.4 135.2 1.0X +weekday of timestamp wholestage on 1345 1352 8 7.4 134.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 1034 1037 4 9.7 103.4 1.0X -hour of timestamp wholestage on 985 992 8 10.2 98.5 1.1X +hour of timestamp wholestage off 1026 1026 0 9.7 102.6 1.0X +hour of timestamp wholestage on 995 1009 9 10.0 99.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 1040 1045 7 9.6 104.0 1.0X -minute of timestamp wholestage on 1019 1035 18 9.8 101.9 1.0X +minute of timestamp wholestage off 1034 1034 0 9.7 103.4 1.0X +minute of timestamp wholestage on 996 1006 9 10.0 99.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 1031 1033 3 9.7 103.1 1.0X -second of timestamp wholestage on 986 996 7 10.1 98.6 1.0X +second of timestamp wholestage off 975 976 1 10.3 97.5 1.0X +second of timestamp wholestage on 994 1003 11 10.1 99.4 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 313 316 3 31.9 31.3 1.0X -current_date wholestage on 320 330 9 31.2 32.0 1.0X +current_date wholestage off 296 303 9 33.7 29.6 1.0X +current_date wholestage on 308 315 7 32.4 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 311 337 36 32.1 31.1 1.0X -current_timestamp wholestage on 320 331 14 31.3 32.0 1.0X +current_timestamp wholestage off 316 353 51 31.6 31.6 1.0X +current_timestamp wholestage on 327 408 135 30.6 32.7 1.0X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1091 1091 0 9.2 109.1 1.0X -cast to date wholestage on 1048 1059 9 9.5 104.8 1.0X +cast to date wholestage off 1068 1078 13 9.4 106.8 1.0X +cast to date wholestage on 1076 1087 7 9.3 107.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1247 1248 1 8.0 124.7 1.0X -last_day wholestage on 1289 1301 14 7.8 128.9 1.0X +last_day wholestage off 1247 1247 0 8.0 124.7 1.0X +last_day wholestage on 1268 1275 12 7.9 126.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1133 1136 4 8.8 113.3 1.0X -next_day wholestage on 1091 1093 2 9.2 109.1 1.0X +next_day wholestage off 1123 1124 1 8.9 112.3 1.0X +next_day wholestage on 1126 1137 11 8.9 112.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1065 1067 4 9.4 106.5 1.0X -date_add wholestage on 1078 1081 3 9.3 107.8 1.0X +date_add wholestage off 1062 1068 8 9.4 106.2 1.0X +date_add wholestage on 1077 1083 7 9.3 107.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1056 1057 0 9.5 105.6 1.0X -date_sub wholestage on 1078 1110 59 9.3 107.8 1.0X +date_sub wholestage off 1051 1053 2 9.5 105.1 1.0X +date_sub wholestage on 1071 1075 4 9.3 107.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1398 1401 4 7.2 139.8 1.0X -add_months wholestage on 1436 1442 5 7.0 143.6 1.0X +add_months wholestage off 1415 1417 3 7.1 141.5 1.0X +add_months wholestage on 1468 1477 9 6.8 146.8 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 5959 6090 186 1.7 595.9 1.0X -format date wholestage on 5571 5592 16 1.8 557.1 1.1X +format date wholestage off 5636 5649 19 1.8 563.6 1.0X +format date wholestage on 5511 5552 33 1.8 551.1 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 7382 7384 3 1.4 738.2 1.0X -from_unixtime wholestage on 7640 7665 28 1.3 764.0 1.0X +from_unixtime wholestage off 7660 7674 20 1.3 766.0 1.0X +from_unixtime wholestage on 7607 7656 41 1.3 760.7 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1233 1235 3 8.1 123.3 1.0X -from_utc_timestamp wholestage on 1296 1317 13 7.7 129.6 1.0X +from_utc_timestamp wholestage off 1241 1242 2 8.1 124.1 1.0X +from_utc_timestamp wholestage on 1308 1315 11 7.6 130.8 0.9X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1786 1788 4 5.6 178.6 1.0X -to_utc_timestamp wholestage on 1751 1761 11 5.7 175.1 1.0X +to_utc_timestamp wholestage off 1921 1926 6 5.2 192.1 1.0X +to_utc_timestamp wholestage on 1820 1823 4 5.5 182.0 1.1X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 346 354 11 28.9 34.6 1.0X -cast interval wholestage on 326 338 13 30.6 32.6 1.1X +cast interval wholestage off 348 352 6 28.7 34.8 1.0X +cast interval wholestage on 342 349 5 29.3 34.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1842 1850 11 5.4 184.2 1.0X -datediff wholestage on 1817 1822 9 5.5 181.7 1.0X +datediff wholestage off 1835 1837 2 5.4 183.5 1.0X +datediff wholestage on 1807 1819 10 5.5 180.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 5506 5522 22 1.8 550.6 1.0X -months_between wholestage on 5499 5512 8 1.8 549.9 1.0X +months_between wholestage off 5484 5497 19 1.8 548.4 1.0X +months_between wholestage on 5413 5422 15 1.8 541.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 2349 2405 80 0.4 2348.8 1.0X -window wholestage on 48159 48205 50 0.0 48159.0 0.0X +window wholestage off 2054 2219 232 0.5 2054.4 1.0X +window wholestage on 46669 46710 43 0.0 46669.0 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2541 2559 25 3.9 254.1 1.0X -date_trunc YEAR wholestage on 2484 2498 13 4.0 248.4 1.0X +date_trunc YEAR wholestage off 2511 2512 1 4.0 251.1 1.0X +date_trunc YEAR wholestage on 2478 2497 23 4.0 247.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2518 2521 3 4.0 251.8 1.0X -date_trunc YYYY wholestage on 2486 2499 10 4.0 248.6 1.0X +date_trunc YYYY wholestage off 2514 2514 0 4.0 251.4 1.0X +date_trunc YYYY wholestage on 2478 2487 13 4.0 247.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2525 2529 6 4.0 252.5 1.0X -date_trunc YY wholestage on 2488 2500 16 4.0 248.8 1.0X +date_trunc YY wholestage off 2514 2516 4 4.0 251.4 1.0X +date_trunc YY wholestage on 2484 2496 14 4.0 248.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2499 2499 0 4.0 249.9 1.0X -date_trunc MON wholestage on 2473 2484 12 4.0 247.3 1.0X +date_trunc MON wholestage off 2503 2507 6 4.0 250.3 1.0X +date_trunc MON wholestage on 2502 2509 7 4.0 250.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2487 2498 16 4.0 248.7 1.0X -date_trunc MONTH wholestage on 2478 2484 5 4.0 247.8 1.0X +date_trunc MONTH wholestage off 2509 2512 4 4.0 250.9 1.0X +date_trunc MONTH wholestage on 2508 2509 2 4.0 250.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2486 2497 14 4.0 248.6 1.0X -date_trunc MM wholestage on 2485 2490 4 4.0 248.5 1.0X +date_trunc MM wholestage off 2526 2529 4 4.0 252.6 1.0X +date_trunc MM wholestage on 2499 2506 5 4.0 249.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 2389 2389 1 4.2 238.9 1.0X -date_trunc DAY wholestage on 2350 2358 8 4.3 235.0 1.0X +date_trunc DAY wholestage off 2414 2417 5 4.1 241.4 1.0X +date_trunc DAY wholestage on 2367 2380 11 4.2 236.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 2392 2392 1 4.2 239.2 1.0X -date_trunc DD wholestage on 2354 2359 6 4.2 235.4 1.0X +date_trunc DD wholestage off 2405 2419 21 4.2 240.5 1.0X +date_trunc DD wholestage on 2371 2390 14 4.2 237.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 2421 2426 7 4.1 242.1 1.0X -date_trunc HOUR wholestage on 2413 2418 6 4.1 241.3 1.0X +date_trunc HOUR wholestage off 2524 2555 44 4.0 252.4 1.0X +date_trunc HOUR wholestage on 2371 2375 4 4.2 237.1 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 358 360 3 27.9 35.8 1.0X -date_trunc MINUTE wholestage on 345 357 11 29.0 34.5 1.0X +date_trunc MINUTE wholestage off 351 352 2 28.5 35.1 1.0X +date_trunc MINUTE wholestage on 360 370 15 27.8 36.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 383 385 4 26.1 38.3 1.0X -date_trunc SECOND wholestage on 350 358 13 28.5 35.0 1.1X +date_trunc SECOND wholestage off 372 375 4 26.9 37.2 1.0X +date_trunc SECOND wholestage on 360 365 5 27.8 36.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2445 2446 1 4.1 244.5 1.0X -date_trunc WEEK wholestage on 2407 2412 5 4.2 240.7 1.0X +date_trunc WEEK wholestage off 2468 2468 1 4.1 246.8 1.0X +date_trunc WEEK wholestage on 2398 2410 19 4.2 239.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3301 3305 5 3.0 330.1 1.0X -date_trunc QUARTER wholestage on 3279 3293 17 3.0 327.9 1.0X +date_trunc QUARTER wholestage off 3291 3299 11 3.0 329.1 1.0X +date_trunc QUARTER wholestage on 3264 3270 4 3.1 326.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 316 316 0 31.7 31.6 1.0X -trunc year wholestage on 311 317 7 32.1 31.1 1.0X +trunc year wholestage off 317 318 1 31.5 31.7 1.0X +trunc year wholestage on 308 314 10 32.4 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 316 320 5 31.6 31.6 1.0X -trunc yyyy wholestage on 316 335 19 31.7 31.6 1.0X +trunc yyyy wholestage off 312 312 1 32.0 31.2 1.0X +trunc yyyy wholestage on 306 323 21 32.7 30.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 322 324 4 31.1 32.2 1.0X -trunc yy wholestage on 308 312 5 32.4 30.8 1.0X +trunc yy wholestage off 309 315 8 32.4 30.9 1.0X +trunc yy wholestage on 309 315 5 32.4 30.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 313 315 3 31.9 31.3 1.0X -trunc mon wholestage on 308 311 4 32.5 30.8 1.0X +trunc mon wholestage off 310 311 1 32.2 31.0 1.0X +trunc mon wholestage on 306 308 2 32.7 30.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 312 313 1 32.0 31.2 1.0X -trunc month wholestage on 308 314 7 32.5 30.8 1.0X +trunc month wholestage off 310 312 3 32.3 31.0 1.0X +trunc month wholestage on 308 309 1 32.4 30.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 311 312 1 32.2 31.1 1.0X -trunc mm wholestage on 306 314 7 32.6 30.6 1.0X +trunc mm wholestage off 307 309 3 32.6 30.7 1.0X +trunc mm wholestage on 308 311 4 32.5 30.8 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 169 170 1 5.9 169.1 1.0X -to timestamp str wholestage on 165 172 8 6.1 165.1 1.0X +to timestamp str wholestage off 165 166 0 6.0 165.5 1.0X +to timestamp str wholestage on 158 166 11 6.3 158.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1628 1629 2 0.6 1628.2 1.0X -to_timestamp wholestage on 1398 1405 7 0.7 1397.6 1.2X +to_timestamp wholestage off 1463 1467 5 0.7 1463.1 1.0X +to_timestamp wholestage on 1471 1477 9 0.7 1470.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1382 1382 0 0.7 1381.8 1.0X -to_unix_timestamp wholestage on 1398 1399 2 0.7 1397.5 1.0X +to_unix_timestamp wholestage off 1433 1437 6 0.7 1433.0 1.0X +to_unix_timestamp wholestage on 1394 1405 15 0.7 1394.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 206 209 4 4.8 206.3 1.0X -to date str wholestage on 213 216 3 4.7 212.9 1.0X +to date str wholestage off 216 217 1 4.6 216.4 1.0X +to date str wholestage on 203 206 3 4.9 202.8 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3560 3567 10 0.3 3559.7 1.0X -to_date wholestage on 3578 3596 23 0.3 3578.1 1.0X +to_date wholestage off 3492 3543 72 0.3 3492.0 1.0X +to_date wholestage on 3340 3354 16 0.3 3339.9 1.0X ================================================================================================ @@ -420,11 +420,11 @@ Conversion from/to external types OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz -To/from java.sql.Timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative +To/from Java's date-time: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Date 460 461 1 10.9 91.9 1.0X -From java.sql.Timestamp 1480 1491 13 3.4 296.0 0.3X -Collect longs 1868 2160 425 2.7 373.5 0.2X -Collect timestamps 5418 6071 574 0.9 1083.7 0.1X +From java.sql.Date 423 438 16 11.8 84.7 1.0X +From java.sql.Timestamp 1444 1454 10 3.5 288.9 0.3X +Collect longs 1833 2354 639 2.7 366.5 0.2X +Collect timestamps 6245 6407 142 0.8 1249.1 0.1X From 037b22e425747c3143cfc4dc56415679b5042b6d Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Tue, 14 Apr 2020 06:50:32 +0000 Subject: [PATCH 10/11] Re-gen DateTimeBenchmark results on JDK 11 --- .../DateTimeBenchmark-jdk11-results.txt | 219 +++++++++--------- 1 file changed, 110 insertions(+), 109 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt index 310ed51d121b..1323a013332d 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-jdk11-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 447 486 54 22.4 44.7 1.0X -cast to timestamp wholestage on 364 381 14 27.5 36.4 1.2X +cast to timestamp wholestage off 440 459 28 22.7 44.0 1.0X +cast to timestamp wholestage on 384 407 15 26.1 38.4 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1366 1374 11 7.3 136.6 1.0X -year of timestamp wholestage on 1278 1302 21 7.8 127.8 1.1X +year of timestamp wholestage off 1334 1352 27 7.5 133.4 1.0X +year of timestamp wholestage on 1301 1309 9 7.7 130.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1606 1622 23 6.2 160.6 1.0X -quarter of timestamp wholestage on 1569 1584 16 6.4 156.9 1.0X +quarter of timestamp wholestage off 1623 1636 18 6.2 162.3 1.0X +quarter of timestamp wholestage on 1592 1603 9 6.3 159.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1243 1259 24 8.0 124.3 1.0X -month of timestamp wholestage on 1267 1282 13 7.9 126.7 1.0X +month of timestamp wholestage off 1246 1250 5 8.0 124.6 1.0X +month of timestamp wholestage on 1277 1290 15 7.8 127.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1837 1846 12 5.4 183.7 1.0X -weekofyear of timestamp wholestage on 1842 1848 4 5.4 184.2 1.0X +weekofyear of timestamp wholestage off 1881 1896 20 5.3 188.1 1.0X +weekofyear of timestamp wholestage on 1865 1879 16 5.4 186.5 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1262 1289 39 7.9 126.2 1.0X -day of timestamp wholestage on 1263 1268 6 7.9 126.3 1.0X +day of timestamp wholestage off 1223 1249 37 8.2 122.3 1.0X +day of timestamp wholestage on 1261 1276 19 7.9 126.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1302 1308 8 7.7 130.2 1.0X -dayofyear of timestamp wholestage on 1300 1308 8 7.7 130.0 1.0X +dayofyear of timestamp wholestage off 1291 1312 29 7.7 129.1 1.0X +dayofyear of timestamp wholestage on 1284 1290 6 7.8 128.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1244 1248 6 8.0 124.4 1.0X -dayofmonth of timestamp wholestage on 1253 1263 10 8.0 125.3 1.0X +dayofmonth of timestamp wholestage off 1241 1246 7 8.1 124.1 1.0X +dayofmonth of timestamp wholestage on 1268 1276 6 7.9 126.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1407 1408 2 7.1 140.7 1.0X -dayofweek of timestamp wholestage on 1411 1432 14 7.1 141.1 1.0X +dayofweek of timestamp wholestage off 1402 1408 9 7.1 140.2 1.0X +dayofweek of timestamp wholestage on 1414 1423 8 7.1 141.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1349 1352 5 7.4 134.9 1.0X -weekday of timestamp wholestage on 1347 1354 10 7.4 134.7 1.0X +weekday of timestamp wholestage off 1349 1350 2 7.4 134.9 1.0X +weekday of timestamp wholestage on 1344 1352 5 7.4 134.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 1038 1041 5 9.6 103.8 1.0X -hour of timestamp wholestage on 983 995 9 10.2 98.3 1.1X +hour of timestamp wholestage off 974 974 0 10.3 97.4 1.0X +hour of timestamp wholestage on 1009 1019 15 9.9 100.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 1042 1043 1 9.6 104.2 1.0X -minute of timestamp wholestage on 1022 1030 9 9.8 102.2 1.0X +minute of timestamp wholestage off 1024 1028 6 9.8 102.4 1.0X +minute of timestamp wholestage on 978 992 11 10.2 97.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 978 979 2 10.2 97.8 1.0X -second of timestamp wholestage on 1016 1028 21 9.8 101.6 1.0X +second of timestamp wholestage off 1023 1026 4 9.8 102.3 1.0X +second of timestamp wholestage on 1008 1024 14 9.9 100.8 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 295 299 6 33.9 29.5 1.0X -current_date wholestage on 321 327 7 31.2 32.1 0.9X +current_date wholestage off 296 299 5 33.8 29.6 1.0X +current_date wholestage on 316 318 2 31.7 31.6 0.9X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 342 387 63 29.2 34.2 1.0X -current_timestamp wholestage on 324 376 97 30.9 32.4 1.1X +current_timestamp wholestage off 310 345 49 32.2 31.0 1.0X +current_timestamp wholestage on 316 332 11 31.7 31.6 1.0X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1065 1067 3 9.4 106.5 1.0X -cast to date wholestage on 1044 1053 10 9.6 104.4 1.0X +cast to date wholestage off 1067 1071 7 9.4 106.7 1.0X +cast to date wholestage on 1050 1072 20 9.5 105.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1241 1245 6 8.1 124.1 1.0X -last_day wholestage on 1276 1287 11 7.8 127.6 1.0X +last_day wholestage off 1240 1245 8 8.1 124.0 1.0X +last_day wholestage on 1273 1290 14 7.9 127.3 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1130 1150 28 8.8 113.0 1.0X -next_day wholestage on 1086 1096 8 9.2 108.6 1.0X +next_day wholestage off 1121 1130 13 8.9 112.1 1.0X +next_day wholestage on 1099 1106 11 9.1 109.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1048 1054 9 9.5 104.8 1.0X -date_add wholestage on 1077 1079 2 9.3 107.7 1.0X +date_add wholestage off 1045 1051 8 9.6 104.5 1.0X +date_add wholestage on 1078 1086 16 9.3 107.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1047 1052 7 9.6 104.7 1.0X -date_sub wholestage on 1078 1087 7 9.3 107.8 1.0X +date_sub wholestage off 1049 1050 1 9.5 104.9 1.0X +date_sub wholestage on 1078 1083 4 9.3 107.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1392 1421 41 7.2 139.2 1.0X -add_months wholestage on 1441 1447 6 6.9 144.1 1.0X +add_months wholestage off 1411 1415 7 7.1 141.1 1.0X +add_months wholestage on 1435 1447 13 7.0 143.5 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 6034 6047 19 1.7 603.4 1.0X -format date wholestage on 5874 5891 16 1.7 587.4 1.0X +format date wholestage off 5736 5786 71 1.7 573.6 1.0X +format date wholestage on 5550 5575 29 1.8 555.0 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 7350 7371 29 1.4 735.0 1.0X -from_unixtime wholestage on 7415 7428 13 1.3 741.5 1.0X +from_unixtime wholestage off 7378 7379 1 1.4 737.8 1.0X +from_unixtime wholestage on 7441 7465 24 1.3 744.1 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1235 1236 2 8.1 123.5 1.0X -from_utc_timestamp wholestage on 1300 1309 10 7.7 130.0 0.9X +from_utc_timestamp wholestage off 1238 1260 30 8.1 123.8 1.0X +from_utc_timestamp wholestage on 1300 1308 5 7.7 130.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1798 1805 10 5.6 179.8 1.0X -to_utc_timestamp wholestage on 1765 1779 11 5.7 176.5 1.0X +to_utc_timestamp wholestage off 1790 1793 5 5.6 179.0 1.0X +to_utc_timestamp wholestage on 1737 1748 13 5.8 173.7 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 345 350 7 29.0 34.5 1.0X -cast interval wholestage on 325 337 11 30.7 32.5 1.1X +cast interval wholestage off 347 350 4 28.8 34.7 1.0X +cast interval wholestage on 327 329 4 30.6 32.7 1.1X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1833 1834 2 5.5 183.3 1.0X -datediff wholestage on 1807 1815 9 5.5 180.7 1.0X +datediff wholestage off 1836 1860 33 5.4 183.6 1.0X +datediff wholestage on 1811 1826 16 5.5 181.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 5938 5941 4 1.7 593.8 1.0X -months_between wholestage on 5891 5920 19 1.7 589.1 1.0X +months_between wholestage off 5613 5617 6 1.8 561.3 1.0X +months_between wholestage on 5590 5624 35 1.8 559.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 2153 2313 226 0.5 2153.3 1.0X -window wholestage on 47097 47143 31 0.0 47097.0 0.0X +window wholestage off 2222 2308 122 0.5 2222.2 1.0X +window wholestage on 48721 48828 101 0.0 48720.7 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2458 2461 5 4.1 245.8 1.0X -date_trunc YEAR wholestage on 2433 2441 6 4.1 243.3 1.0X +date_trunc YEAR wholestage off 2482 2503 30 4.0 248.2 1.0X +date_trunc YEAR wholestage on 2520 2532 12 4.0 252.0 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2454 2457 4 4.1 245.4 1.0X -date_trunc YYYY wholestage on 2436 2442 7 4.1 243.6 1.0X +date_trunc YYYY wholestage off 2487 2493 9 4.0 248.7 1.0X +date_trunc YYYY wholestage on 2521 2527 8 4.0 252.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2467 2469 3 4.1 246.7 1.0X -date_trunc YY wholestage on 2435 2448 18 4.1 243.5 1.0X +date_trunc YY wholestage off 2479 2492 18 4.0 247.9 1.0X +date_trunc YY wholestage on 2519 2529 8 4.0 251.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2494 2494 1 4.0 249.4 1.0X -date_trunc MON wholestage on 2428 2441 14 4.1 242.8 1.0X +date_trunc MON wholestage off 2504 2519 21 4.0 250.4 1.0X +date_trunc MON wholestage on 2549 2563 15 3.9 254.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2502 2510 12 4.0 250.2 1.0X -date_trunc MONTH wholestage on 2438 2444 6 4.1 243.8 1.0X +date_trunc MONTH wholestage off 2517 2527 14 4.0 251.7 1.0X +date_trunc MONTH wholestage on 2538 2547 11 3.9 253.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2486 2487 1 4.0 248.6 1.0X -date_trunc MM wholestage on 2436 2441 4 4.1 243.6 1.0X +date_trunc MM wholestage off 2506 2507 2 4.0 250.6 1.0X +date_trunc MM wholestage on 2536 2546 10 3.9 253.6 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 2406 2421 21 4.2 240.6 1.0X -date_trunc DAY wholestage on 2352 2370 23 4.3 235.2 1.0X +date_trunc DAY wholestage off 2443 2454 17 4.1 244.3 1.0X +date_trunc DAY wholestage on 2468 2479 12 4.1 246.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 2414 2417 5 4.1 241.4 1.0X -date_trunc DD wholestage on 2355 2366 8 4.2 235.5 1.0X +date_trunc DD wholestage off 2440 2440 0 4.1 244.0 1.0X +date_trunc DD wholestage on 2459 2481 23 4.1 245.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 2419 2426 10 4.1 241.9 1.0X -date_trunc HOUR wholestage on 2369 2374 4 4.2 236.9 1.0X +date_trunc HOUR wholestage off 2452 2453 2 4.1 245.2 1.0X +date_trunc HOUR wholestage on 2428 2435 5 4.1 242.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 357 378 30 28.0 35.7 1.0X -date_trunc MINUTE wholestage on 331 335 4 30.2 33.1 1.1X +date_trunc MINUTE wholestage off 359 359 1 27.8 35.9 1.0X +date_trunc MINUTE wholestage on 382 388 8 26.2 38.2 0.9X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 373 375 3 26.8 37.3 1.0X -date_trunc SECOND wholestage on 330 335 4 30.3 33.0 1.1X +date_trunc SECOND wholestage off 382 386 6 26.2 38.2 1.0X +date_trunc SECOND wholestage on 379 382 5 26.4 37.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2479 2480 2 4.0 247.9 1.0X -date_trunc WEEK wholestage on 2441 2450 8 4.1 244.1 1.0X +date_trunc WEEK wholestage off 2427 2429 3 4.1 242.7 1.0X +date_trunc WEEK wholestage on 2427 2441 12 4.1 242.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3337 3337 0 3.0 333.7 1.0X -date_trunc QUARTER wholestage on 3235 3244 8 3.1 323.5 1.0X +date_trunc QUARTER wholestage off 3551 3583 46 2.8 355.1 1.0X +date_trunc QUARTER wholestage on 3517 3526 6 2.8 351.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 315 316 1 31.7 31.5 1.0X -trunc year wholestage on 293 302 16 34.2 29.3 1.1X +trunc year wholestage off 312 313 1 32.0 31.2 1.0X +trunc year wholestage on 319 326 7 31.3 31.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 312 314 3 32.0 31.2 1.0X -trunc yyyy wholestage on 295 300 8 33.9 29.5 1.1X +trunc yyyy wholestage off 318 318 0 31.5 31.8 1.0X +trunc yyyy wholestage on 317 328 17 31.5 31.7 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 311 317 8 32.1 31.1 1.0X -trunc yy wholestage on 294 302 7 34.0 29.4 1.1X +trunc yy wholestage off 315 322 10 31.8 31.5 1.0X +trunc yy wholestage on 318 328 9 31.5 31.8 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 312 314 3 32.0 31.2 1.0X -trunc mon wholestage on 296 299 5 33.8 29.6 1.1X +trunc mon wholestage off 311 313 2 32.1 31.1 1.0X +trunc mon wholestage on 322 326 6 31.0 32.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 311 311 0 32.1 31.1 1.0X -trunc month wholestage on 293 297 4 34.2 29.3 1.1X +trunc month wholestage off 310 318 11 32.2 31.0 1.0X +trunc month wholestage on 319 326 8 31.3 31.9 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 315 320 7 31.7 31.5 1.0X -trunc mm wholestage on 291 296 8 34.4 29.1 1.1X +trunc mm wholestage off 311 314 4 32.2 31.1 1.0X +trunc mm wholestage on 318 324 7 31.4 31.8 1.0X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 161 171 15 6.2 160.6 1.0X -to timestamp str wholestage on 152 154 1 6.6 151.6 1.1X +to timestamp str wholestage off 166 167 2 6.0 165.7 1.0X +to timestamp str wholestage on 158 162 4 6.3 158.2 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1441 1450 13 0.7 1440.6 1.0X -to_timestamp wholestage on 1371 1381 20 0.7 1370.8 1.1X +to_timestamp wholestage off 1487 1488 1 0.7 1487.1 1.0X +to_timestamp wholestage on 1418 1422 4 0.7 1418.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 1329 1335 9 0.8 1328.7 1.0X -to_unix_timestamp wholestage on 1354 1357 4 0.7 1353.7 1.0X +to_unix_timestamp wholestage off 1409 1420 15 0.7 1409.2 1.0X +to_unix_timestamp wholestage on 1422 1428 8 0.7 1422.1 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 212 213 2 4.7 211.7 1.0X -to date str wholestage on 206 207 1 4.9 205.9 1.0X +to date str wholestage off 207 207 0 4.8 206.9 1.0X +to date str wholestage on 209 210 1 4.8 209.4 1.0X OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3255 3309 76 0.3 3255.0 1.0X -to_date wholestage on 3146 3168 23 0.3 3146.4 1.0X +to_date wholestage off 3378 3398 28 0.3 3377.7 1.0X +to_date wholestage on 3372 3379 8 0.3 3372.2 1.0X ================================================================================================ @@ -422,8 +422,9 @@ OpenJDK 64-Bit Server VM 11.0.6+10-post-Ubuntu-1ubuntu118.04.1 on Linux 4.15.0-1 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz To/from Java's date-time: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Timestamp 359 365 8 13.9 71.8 1.0X -Collect longs 1832 1895 84 2.7 366.3 0.2X -Collect timestamps 1811 2046 247 2.8 362.2 0.2X +From java.sql.Date 427 443 23 11.7 85.4 1.0X +From java.sql.Timestamp 361 369 11 13.8 72.3 1.2X +Collect longs 1942 2044 170 2.6 388.3 0.2X +Collect timestamps 1891 2093 192 2.6 378.2 0.2X From ee1d78865069e3beb2192f5b360af0df63e5d1ea Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Tue, 14 Apr 2020 07:32:24 +0000 Subject: [PATCH 11/11] Re-gen DateTimeBenchmark results on JDK 8 --- .../benchmarks/DateTimeBenchmark-results.txt | 219 +++++++++--------- 1 file changed, 110 insertions(+), 109 deletions(-) diff --git a/sql/core/benchmarks/DateTimeBenchmark-results.txt b/sql/core/benchmarks/DateTimeBenchmark-results.txt index 43ed90a38f7c..77b6f833221e 100644 --- a/sql/core/benchmarks/DateTimeBenchmark-results.txt +++ b/sql/core/benchmarks/DateTimeBenchmark-results.txt @@ -6,92 +6,92 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to timestamp wholestage off 416 439 32 24.0 41.6 1.0X -cast to timestamp wholestage on 370 399 31 27.1 37.0 1.1X +cast to timestamp wholestage off 410 428 25 24.4 41.0 1.0X +cast to timestamp wholestage on 364 379 17 27.5 36.4 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz year of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -year of timestamp wholestage off 1328 1343 21 7.5 132.8 1.0X -year of timestamp wholestage on 1204 1247 27 8.3 120.4 1.1X +year of timestamp wholestage off 1308 1318 15 7.6 130.8 1.0X +year of timestamp wholestage on 1204 1234 19 8.3 120.4 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz quarter of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -quarter of timestamp wholestage off 1447 1451 6 6.9 144.7 1.0X -quarter of timestamp wholestage on 1384 1392 7 7.2 138.4 1.0X +quarter of timestamp wholestage off 1439 1442 6 7.0 143.9 1.0X +quarter of timestamp wholestage on 1374 1385 9 7.3 137.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz month of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -month of timestamp wholestage off 1233 1238 6 8.1 123.3 1.0X -month of timestamp wholestage on 1232 1252 15 8.1 123.2 1.0X +month of timestamp wholestage off 1228 1234 8 8.1 122.8 1.0X +month of timestamp wholestage on 1225 1241 25 8.2 122.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekofyear of timestamp wholestage off 1921 1923 3 5.2 192.1 1.0X -weekofyear of timestamp wholestage on 1893 1914 14 5.3 189.3 1.0X +weekofyear of timestamp wholestage off 1878 1880 3 5.3 187.8 1.0X +weekofyear of timestamp wholestage on 1864 1870 6 5.4 186.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz day of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -day of timestamp wholestage off 1224 1227 4 8.2 122.4 1.0X -day of timestamp wholestage on 1219 1238 15 8.2 121.9 1.0X +day of timestamp wholestage off 1218 1220 3 8.2 121.8 1.0X +day of timestamp wholestage on 1217 1226 10 8.2 121.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofyear of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofyear of timestamp wholestage off 1283 1283 1 7.8 128.3 1.0X -dayofyear of timestamp wholestage on 1256 1261 5 8.0 125.6 1.0X +dayofyear of timestamp wholestage off 1274 1282 12 7.8 127.4 1.0X +dayofyear of timestamp wholestage on 1263 1274 14 7.9 126.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofmonth of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofmonth of timestamp wholestage off 1227 1233 8 8.2 122.7 1.0X -dayofmonth of timestamp wholestage on 1220 1228 6 8.2 122.0 1.0X +dayofmonth of timestamp wholestage off 1221 1226 6 8.2 122.1 1.0X +dayofmonth of timestamp wholestage on 1215 1222 9 8.2 121.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz dayofweek of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -dayofweek of timestamp wholestage off 1404 1408 5 7.1 140.4 1.0X -dayofweek of timestamp wholestage on 1376 1386 6 7.3 137.6 1.0X +dayofweek of timestamp wholestage off 1404 1431 38 7.1 140.4 1.0X +dayofweek of timestamp wholestage on 1374 1381 8 7.3 137.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz weekday of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -weekday of timestamp wholestage off 1346 1350 5 7.4 134.6 1.0X -weekday of timestamp wholestage on 1313 1319 6 7.6 131.3 1.0X +weekday of timestamp wholestage off 1342 1350 12 7.5 134.2 1.0X +weekday of timestamp wholestage on 1311 1317 5 7.6 131.1 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz hour of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -hour of timestamp wholestage off 1005 1011 8 10.0 100.5 1.0X -hour of timestamp wholestage on 953 961 9 10.5 95.3 1.1X +hour of timestamp wholestage off 997 1000 4 10.0 99.7 1.0X +hour of timestamp wholestage on 959 969 8 10.4 95.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz minute of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -minute of timestamp wholestage off 995 1000 8 10.1 99.5 1.0X -minute of timestamp wholestage on 957 959 3 10.5 95.7 1.0X +minute of timestamp wholestage off 968 970 2 10.3 96.8 1.0X +minute of timestamp wholestage on 952 960 8 10.5 95.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz second of timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -second of timestamp wholestage off 960 963 4 10.4 96.0 1.0X -second of timestamp wholestage on 957 960 3 10.4 95.7 1.0X +second of timestamp wholestage off 971 974 5 10.3 97.1 1.0X +second of timestamp wholestage on 952 953 0 10.5 95.2 1.0X ================================================================================================ @@ -102,15 +102,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_date wholestage off 290 295 7 34.4 29.0 1.0X -current_date wholestage on 287 295 13 34.9 28.7 1.0X +current_date wholestage off 277 282 7 36.1 27.7 1.0X +current_date wholestage on 283 290 11 35.3 28.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz current_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -current_timestamp wholestage off 294 296 4 34.1 29.4 1.0X -current_timestamp wholestage on 280 303 19 35.7 28.0 1.0X +current_timestamp wholestage off 302 324 31 33.1 30.2 1.0X +current_timestamp wholestage on 281 292 13 35.6 28.1 1.1X ================================================================================================ @@ -121,43 +121,43 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast to date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast to date wholestage off 1066 1067 1 9.4 106.6 1.0X -cast to date wholestage on 1007 1014 6 9.9 100.7 1.1X +cast to date wholestage off 1064 1066 2 9.4 106.4 1.0X +cast to date wholestage on 1002 1010 8 10.0 100.2 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz last_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -last_day wholestage off 1273 1289 22 7.9 127.3 1.0X -last_day wholestage on 1238 1246 9 8.1 123.8 1.0X +last_day wholestage off 1247 1250 4 8.0 124.7 1.0X +last_day wholestage on 1238 1245 4 8.1 123.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz next_day: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -next_day wholestage off 1124 1125 2 8.9 112.4 1.0X -next_day wholestage on 1058 1064 8 9.5 105.8 1.1X +next_day wholestage off 1112 1113 1 9.0 111.2 1.0X +next_day wholestage on 1055 1059 5 9.5 105.5 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_add: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_add wholestage off 1049 1049 0 9.5 104.9 1.0X -date_add wholestage on 1036 1041 7 9.6 103.6 1.0X +date_add wholestage off 1049 1051 3 9.5 104.9 1.0X +date_add wholestage on 1036 1043 9 9.6 103.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_sub: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_sub wholestage off 1051 1052 2 9.5 105.1 1.0X -date_sub wholestage on 1040 1046 5 9.6 104.0 1.0X +date_sub wholestage off 1043 1063 29 9.6 104.3 1.0X +date_sub wholestage on 1036 1041 5 9.6 103.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz add_months: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -add_months wholestage off 1381 1388 11 7.2 138.1 1.0X -add_months wholestage on 1359 1367 8 7.4 135.9 1.0X +add_months wholestage off 1371 1373 2 7.3 137.1 1.0X +add_months wholestage on 1402 1409 10 7.1 140.2 1.0X ================================================================================================ @@ -168,8 +168,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz format date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -format date wholestage off 5766 5793 38 1.7 576.6 1.0X -format date wholestage on 5803 5812 7 1.7 580.3 1.0X +format date wholestage off 5741 5862 171 1.7 574.1 1.0X +format date wholestage on 5589 5600 19 1.8 558.9 1.0X ================================================================================================ @@ -180,8 +180,8 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_unixtime: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_unixtime wholestage off 8891 8915 34 1.1 889.1 1.0X -from_unixtime wholestage on 8870 8885 12 1.1 887.0 1.0X +from_unixtime wholestage off 8681 8684 4 1.2 868.1 1.0X +from_unixtime wholestage on 8669 8707 33 1.2 866.9 1.0X ================================================================================================ @@ -192,15 +192,15 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz from_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -from_utc_timestamp wholestage off 1089 1094 7 9.2 108.9 1.0X -from_utc_timestamp wholestage on 1105 1107 3 9.0 110.5 1.0X +from_utc_timestamp wholestage off 1096 1101 7 9.1 109.6 1.0X +from_utc_timestamp wholestage on 1108 1116 6 9.0 110.8 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_utc_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_utc_timestamp wholestage off 1620 1628 11 6.2 162.0 1.0X -to_utc_timestamp wholestage on 1600 1608 7 6.3 160.0 1.0X +to_utc_timestamp wholestage off 1626 1638 16 6.1 162.6 1.0X +to_utc_timestamp wholestage on 1594 1606 10 6.3 159.4 1.0X ================================================================================================ @@ -211,29 +211,29 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz cast interval: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -cast interval wholestage off 334 336 3 30.0 33.4 1.0X -cast interval wholestage on 305 310 4 32.7 30.5 1.1X +cast interval wholestage off 331 335 6 30.2 33.1 1.0X +cast interval wholestage on 298 305 5 33.5 29.8 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz datediff: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -datediff wholestage off 1811 1816 7 5.5 181.1 1.0X -datediff wholestage on 1758 1761 3 5.7 175.8 1.0X +datediff wholestage off 1821 1822 2 5.5 182.1 1.0X +datediff wholestage on 1759 1763 3 5.7 175.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz months_between: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -months_between wholestage off 4780 4789 12 2.1 478.0 1.0X -months_between wholestage on 4765 4772 8 2.1 476.5 1.0X +months_between wholestage off 4752 4770 25 2.1 475.2 1.0X +months_between wholestage on 4740 4746 5 2.1 474.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz window: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -window wholestage off 1840 1967 179 0.5 1840.4 1.0X -window wholestage on 46710 46792 57 0.0 46709.5 0.0X +window wholestage off 1936 2049 160 0.5 1935.7 1.0X +window wholestage on 44821 44850 44 0.0 44820.6 0.0X ================================================================================================ @@ -244,134 +244,134 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YEAR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YEAR wholestage off 2350 2351 1 4.3 235.0 1.0X -date_trunc YEAR wholestage on 2317 2324 8 4.3 231.7 1.0X +date_trunc YEAR wholestage off 2382 2384 3 4.2 238.2 1.0X +date_trunc YEAR wholestage on 2309 2316 7 4.3 230.9 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YYYY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YYYY wholestage off 2341 2343 3 4.3 234.1 1.0X -date_trunc YYYY wholestage on 2314 2332 22 4.3 231.4 1.0X +date_trunc YYYY wholestage off 2368 2375 10 4.2 236.8 1.0X +date_trunc YYYY wholestage on 2304 2313 7 4.3 230.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc YY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc YY wholestage off 2348 2354 9 4.3 234.8 1.0X -date_trunc YY wholestage on 2313 2317 3 4.3 231.3 1.0X +date_trunc YY wholestage off 2381 2396 22 4.2 238.1 1.0X +date_trunc YY wholestage on 2303 2305 1 4.3 230.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MON: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MON wholestage off 2383 2385 3 4.2 238.3 1.0X -date_trunc MON wholestage on 2293 2307 22 4.4 229.3 1.0X +date_trunc MON wholestage off 2325 2333 11 4.3 232.5 1.0X +date_trunc MON wholestage on 2293 2301 6 4.4 229.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MONTH: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MONTH wholestage off 2380 2393 18 4.2 238.0 1.0X -date_trunc MONTH wholestage on 2296 2304 9 4.4 229.6 1.0X +date_trunc MONTH wholestage off 2335 2335 0 4.3 233.5 1.0X +date_trunc MONTH wholestage on 2296 2298 2 4.4 229.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MM: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MM wholestage off 2375 2380 7 4.2 237.5 1.0X -date_trunc MM wholestage on 2295 2302 8 4.4 229.5 1.0X +date_trunc MM wholestage off 2328 2329 1 4.3 232.8 1.0X +date_trunc MM wholestage on 2290 2295 4 4.4 229.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DAY: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DAY wholestage off 2145 2145 1 4.7 214.5 1.0X -date_trunc DAY wholestage on 2090 2096 6 4.8 209.0 1.0X +date_trunc DAY wholestage off 2139 2140 1 4.7 213.9 1.0X +date_trunc DAY wholestage on 2095 2101 7 4.8 209.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc DD: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc DD wholestage off 2142 2149 11 4.7 214.2 1.0X -date_trunc DD wholestage on 2090 2096 5 4.8 209.0 1.0X +date_trunc DD wholestage off 2143 2145 2 4.7 214.3 1.0X +date_trunc DD wholestage on 2087 2092 3 4.8 208.7 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc HOUR: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc HOUR wholestage off 2204 2212 11 4.5 220.4 1.0X -date_trunc HOUR wholestage on 2196 2201 5 4.6 219.6 1.0X +date_trunc HOUR wholestage off 2201 2207 8 4.5 220.1 1.0X +date_trunc HOUR wholestage on 2176 2185 6 4.6 217.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc MINUTE: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc MINUTE wholestage off 353 353 1 28.3 35.3 1.0X -date_trunc MINUTE wholestage on 331 335 4 30.2 33.1 1.1X +date_trunc MINUTE wholestage off 356 356 0 28.1 35.6 1.0X +date_trunc MINUTE wholestage on 333 344 7 30.1 33.3 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc SECOND: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc SECOND wholestage off 343 345 3 29.2 34.3 1.0X -date_trunc SECOND wholestage on 335 336 2 29.9 33.5 1.0X +date_trunc SECOND wholestage off 341 342 2 29.3 34.1 1.0X +date_trunc SECOND wholestage on 335 349 18 29.9 33.5 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc WEEK: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc WEEK wholestage off 2277 2279 3 4.4 227.7 1.0X -date_trunc WEEK wholestage on 2262 2270 10 4.4 226.2 1.0X +date_trunc WEEK wholestage off 2257 2257 1 4.4 225.7 1.0X +date_trunc WEEK wholestage on 2202 2211 11 4.5 220.2 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz date_trunc QUARTER: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -date_trunc QUARTER wholestage off 3395 3395 0 2.9 339.5 1.0X -date_trunc QUARTER wholestage on 3185 3193 6 3.1 318.5 1.1X +date_trunc QUARTER wholestage off 3180 3181 2 3.1 318.0 1.0X +date_trunc QUARTER wholestage on 3036 3043 12 3.3 303.6 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc year: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc year wholestage off 321 330 14 31.2 32.1 1.0X -trunc year wholestage on 293 308 14 34.1 29.3 1.1X +trunc year wholestage off 327 328 1 30.6 32.7 1.0X +trunc year wholestage on 310 325 13 32.3 31.0 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yyyy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yyyy wholestage off 322 324 2 31.1 32.2 1.0X -trunc yyyy wholestage on 293 296 4 34.1 29.3 1.1X +trunc yyyy wholestage off 323 327 6 31.0 32.3 1.0X +trunc yyyy wholestage on 304 317 14 32.9 30.4 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc yy: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc yy wholestage off 322 322 0 31.0 32.2 1.0X -trunc yy wholestage on 292 296 4 34.2 29.2 1.1X +trunc yy wholestage off 324 325 2 30.8 32.4 1.0X +trunc yy wholestage on 308 311 3 32.4 30.8 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mon: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mon wholestage off 319 320 1 31.3 31.9 1.0X -trunc mon wholestage on 293 295 1 34.1 29.3 1.1X +trunc mon wholestage off 323 323 1 31.0 32.3 1.0X +trunc mon wholestage on 303 310 7 33.0 30.3 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc month: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc month wholestage off 319 320 1 31.3 31.9 1.0X -trunc month wholestage on 293 295 2 34.1 29.3 1.1X +trunc month wholestage off 322 323 0 31.0 32.2 1.0X +trunc month wholestage on 307 337 65 32.6 30.7 1.1X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz trunc mm: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -trunc mm wholestage off 318 319 1 31.4 31.8 1.0X -trunc mm wholestage on 293 312 26 34.1 29.3 1.1X +trunc mm wholestage off 324 325 2 30.9 32.4 1.0X +trunc mm wholestage on 294 306 7 34.0 29.4 1.1X ================================================================================================ @@ -382,36 +382,36 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to timestamp str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to timestamp str wholestage off 220 226 9 4.5 220.3 1.0X -to timestamp str wholestage on 212 214 4 4.7 212.2 1.0X +to timestamp str wholestage off 216 216 1 4.6 215.7 1.0X +to timestamp str wholestage on 207 209 3 4.8 207.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_timestamp wholestage off 1875 1876 2 0.5 1874.7 1.0X -to_timestamp wholestage on 2075 2091 25 0.5 2075.1 0.9X +to_timestamp wholestage off 1751 1751 1 0.6 1750.6 1.0X +to_timestamp wholestage on 1798 1832 31 0.6 1798.4 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_unix_timestamp: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_unix_timestamp wholestage off 2141 2143 2 0.5 2141.2 1.0X -to_unix_timestamp wholestage on 2145 2177 21 0.5 2144.7 1.0X +to_unix_timestamp wholestage off 1770 1773 4 0.6 1770.2 1.0X +to_unix_timestamp wholestage on 1743 1754 10 0.6 1743.0 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to date str: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to date str wholestage off 276 284 11 3.6 276.1 1.0X -to date str wholestage on 264 270 8 3.8 264.3 1.0X +to date str wholestage off 260 266 9 3.8 260.1 1.0X +to date str wholestage on 257 260 3 3.9 257.3 1.0X OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0-1063-aws Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz to_date: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -to_date wholestage off 3876 3903 38 0.3 3876.1 1.0X -to_date wholestage on 3833 3843 6 0.3 3833.4 1.0X +to_date wholestage off 3589 3620 44 0.3 3589.0 1.0X +to_date wholestage on 3565 3579 15 0.3 3565.0 1.0X ================================================================================================ @@ -422,8 +422,9 @@ OpenJDK 64-Bit Server VM 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08 on Linux 4.15.0- Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz To/from Java's date-time: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative ------------------------------------------------------------------------------------------------------------------------ -From java.sql.Timestamp 394 399 5 12.7 78.7 1.0X -Collect longs 1336 2676 1201 3.7 267.2 0.3X -Collect timestamps 2025 2091 65 2.5 405.0 0.2X +From java.sql.Date 416 420 6 12.0 83.2 1.0X +From java.sql.Timestamp 375 381 5 13.3 75.1 1.1X +Collect longs 1225 1962 1101 4.1 245.1 0.3X +Collect timestamps 2013 2829 1401 2.5 402.5 0.2X