diff --git a/docker/test/performance-comparison/report.py b/docker/test/performance-comparison/report.py
index 227722a8bea..826ec60c9ef 100755
--- a/docker/test/performance-comparison/report.py
+++ b/docker/test/performance-comparison/report.py
@@ -7,6 +7,7 @@ import csv
import itertools
import json
import os
+import os.path
import pprint
import sys
import traceback
@@ -324,6 +325,9 @@ if args.report == 'main':
print_test_times()
def print_benchmark_results():
+ if not os.path.isfile('benchmark/website-left.json'):
+ return
+
json_reports = [json.load(open(f'benchmark/website-{x}.json')) for x in ['left', 'right']]
stats = [next(iter(x.values()))["statistics"] for x in json_reports]
qps = [x["QPS"] for x in stats]
diff --git a/tests/performance/date_time.xml b/tests/performance/date_time_long.xml
similarity index 85%
rename from tests/performance/date_time.xml
rename to tests/performance/date_time_long.xml
index 43cd1f353e2..b358945b35b 100644
--- a/tests/performance/date_time.xml
+++ b/tests/performance/date_time_long.xml
@@ -1,11 +1,5 @@
-
-
-
- long
-
-
-
+ long
datetime_transform
@@ -126,8 +120,8 @@
- SELECT count() FROM numbers(10000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {datetime_transform}(t, '{time_zone}'))
- SELECT count() FROM numbers(10000000) WHERE NOT ignore(toDate('2017-01-01') + number % 1000 + rand() % 10 AS t, {date_transform}(t))
- SELECT count() FROM numbers(10000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {binary_function}(t, 1))
- SELECT count() FROM numbers(10000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, toStartOfInterval(t, INTERVAL 1 month))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {datetime_transform}(t, '{time_zone}'))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDate('2017-01-01') + number % 1000 + rand() % 10 AS t, {date_transform}(t))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {binary_function}(t, 1))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, toStartOfInterval(t, INTERVAL 1 month))
diff --git a/tests/performance/date_time_short.xml b/tests/performance/date_time_short.xml
new file mode 100644
index 00000000000..a9fd0908694
--- /dev/null
+++ b/tests/performance/date_time_short.xml
@@ -0,0 +1,40 @@
+
+
+
+
+ date_transform
+
+ toDayOfWeek
+ toMonday
+ toRelativeDayNum
+ toYYYYMMDDhhmmss
+ toUnixTimestamp
+
+
+
+ time_zone
+
+ Europe/Moscow
+
+
+
+ binary_function
+
+ lessOrEquals
+ greater
+ plus
+ addWeeks
+
+
+
+
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {date_transform}(t, '{time_zone}'))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDate('2017-01-01') + number % 1000 + rand() % 10 AS t, {date_transform}(t))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, {binary_function}(t, 1))
+ SELECT count() FROM numbers(100000000) WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, toStartOfInterval(t, INTERVAL 1 month))
+
diff --git a/tests/performance/float_formatting.xml b/tests/performance/float_formatting.xml
index f65efbe83cf..4588f048d20 100644
--- a/tests/performance/float_formatting.xml
+++ b/tests/performance/float_formatting.xml
@@ -1,10 +1,9 @@
-
-
- long
-
-
-
-
+
+
expr
@@ -49,6 +48,6 @@
- SELECT count() FROM numbers(1000000) WHERE NOT ignore(toString({expr}))
- SELECT count() FROM zeros(1000000) WHERE NOT ignore(toString({expr_zero}))
+ SELECT count() FROM numbers(10000000) WHERE NOT ignore(toString({expr}))
+ SELECT count() FROM zeros(10000000) WHERE NOT ignore(toString({expr_zero}))
diff --git a/tests/performance/float_parsing.xml b/tests/performance/float_parsing.xml
index 2acbb636fed..7d159fbfced 100644
--- a/tests/performance/float_parsing.xml
+++ b/tests/performance/float_parsing.xml
@@ -1,10 +1,4 @@
-
- long
-
-
-
-
expr
diff --git a/tests/performance/set.xml b/tests/performance/set.xml
index 576a26390d1..09301d5637c 100644
--- a/tests/performance/set.xml
+++ b/tests/performance/set.xml
@@ -1,30 +1,37 @@
-
- long
-
-
-
-
- table
+ table_small
zeros(10000000)
zeros_mt(100000000)
- size
+ table_large
+
+ zeros(100000000)
+ zeros_mt(1000000000)
+
+
+
+ size_large
+
+ 1048576
+ 10000000
+
+
+
+ size_small
1
16
1024
16384
- 1048576
- 10000000
- SELECT count() FROM {table} WHERE rand64() IN (SELECT number FROM system.numbers LIMIT {size})
+ SELECT count() FROM {table_large} WHERE rand64() IN (SELECT number FROM system.numbers LIMIT {size_small})
+ SELECT count() FROM {table_small} WHERE rand64() IN (SELECT number FROM system.numbers LIMIT {size_large})