diff --git a/tests/performance/avg_weighted.xml b/tests/performance/avg_weighted.xml
index 0e91051e618..2476011e6a9 100644
--- a/tests/performance/avg_weighted.xml
+++ b/tests/performance/avg_weighted.xml
@@ -20,7 +20,7 @@
INSERT INTO perf_avg(num)
SELECT toUInt64(UserID / (WatchID + 1) * 1000000)
FROM hits_100m_single
- LIMIT 100000000
+ LIMIT 50000000
optimize table perf_avg final
diff --git a/tests/performance/direct_dictionary.xml b/tests/performance/direct_dictionary.xml
index b8881a3d4fe..9393108d1e2 100644
--- a/tests/performance/direct_dictionary.xml
+++ b/tests/performance/direct_dictionary.xml
@@ -65,16 +65,16 @@
LAYOUT(COMPLEX_KEY_DIRECT())
- SELECT dictGet('default.simple_direct_dictionary', 'value_int', number) FROM system.numbers LIMIT 500000;
- SELECT dictGet('default.simple_direct_dictionary', 'value_string', number) FROM system.numbers LIMIT 500000;
- SELECT dictGet('default.simple_direct_dictionary', 'value_decimal', number) FROM system.numbers LIMIT 500000;
- SELECT dictGet('default.simple_direct_dictionary', 'value_string_nullable', number) FROM system.numbers LIMIT 500000;
- SELECT dictHas('default.simple_direct_dictionary', number) FROM system.numbers LIMIT 500000;
+ SELECT dictGet('default.simple_direct_dictionary', 'value_int', number) FROM system.numbers LIMIT 300000;
+ SELECT dictGet('default.simple_direct_dictionary', 'value_string', number) FROM system.numbers LIMIT 300000;
+ SELECT dictGet('default.simple_direct_dictionary', 'value_decimal', number) FROM system.numbers LIMIT 300000;
+ SELECT dictGet('default.simple_direct_dictionary', 'value_string_nullable', number) FROM system.numbers LIMIT 300000;
+ SELECT dictHas('default.simple_direct_dictionary', number) FROM system.numbers LIMIT 300000;
- SELECT dictGet('default.complex_direct_dictionary', 'value_int', (number, toString(number))) FROM system.numbers LIMIT 150000;
- SELECT dictGet('default.complex_direct_dictionary', 'value_string', (number, toString(number))) FROM system.numbers LIMIT 150000;
- SELECT dictGet('default.complex_direct_dictionary', 'value_decimal', (number, toString(number))) FROM system.numbers LIMIT 150000;
- SELECT dictGet('default.complex_direct_dictionary', 'value_string_nullable', (number, toString(number))) FROM system.numbers LIMIT 150000;
- SELECT dictHas('default.complex_direct_dictionary', (number, toString(number))) FROM system.numbers LIMIT 150000;
+ SELECT dictGet('default.complex_direct_dictionary', 'value_int', (number, toString(number))) FROM system.numbers LIMIT 100000;
+ SELECT dictGet('default.complex_direct_dictionary', 'value_string', (number, toString(number))) FROM system.numbers LIMIT 100000;
+ SELECT dictGet('default.complex_direct_dictionary', 'value_decimal', (number, toString(number))) FROM system.numbers LIMIT 100000;
+ SELECT dictGet('default.complex_direct_dictionary', 'value_string_nullable', (number, toString(number))) FROM system.numbers LIMIT 100000;
+ SELECT dictHas('default.complex_direct_dictionary', (number, toString(number))) FROM system.numbers LIMIT 100000;
diff --git a/tests/performance/point_in_polygon.xml b/tests/performance/point_in_polygon.xml
index 0ba44616703..b7ba0583734 100644
--- a/tests/performance/point_in_polygon.xml
+++ b/tests/performance/point_in_polygon.xml
@@ -9,7 +9,7 @@
WITH number + 1 AS radius
SELECT [arrayMap(x -> (cos(x / 90. * pi()) * radius, sin(x / 90. * pi()) * radius), range(180))]
FROM numbers_mt(10000000)
- SETTINGS max_insert_threads = 4, max_memory_usage = 20G
+ SETTINGS max_insert_threads = 4, max_memory_usage = 20000000000
SELECT pointInPolygon((100, 100), polygon) FROM polygons FORMAT Null