From dc1cb0b3b33a1fd89c232c196e04395340281510 Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Wed, 7 Feb 2024 20:35:11 +0100 Subject: [PATCH] upd --- clickhouse/queries-tuned.sql | 2 +- clickhouse/results/c6a.metal.tuned.json | 92 ++++++++++++------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/clickhouse/queries-tuned.sql b/clickhouse/queries-tuned.sql index 8cc21266..cff6a493 100644 --- a/clickhouse/queries-tuned.sql +++ b/clickhouse/queries-tuned.sql @@ -2,7 +2,7 @@ SELECT COUNT(*) FROM hits; SELECT COUNT(*) FROM hits WHERE AdvEngineID <> 0; SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits; SELECT AVG(UserID) FROM hits; -SELECT COUNT(DISTINCT UserID) FROM hits; +SELECT count() FROM (SELECT UserID FROM hits GROUP BY UserID); SELECT count() FROM (SELECT SearchPhrase FROM hits GROUP BY SearchPhrase); SELECT MIN(EventDate), MAX(EventDate) FROM hits; SELECT AdvEngineID, COUNT(*) FROM hits WHERE AdvEngineID <> 0 GROUP BY AdvEngineID ORDER BY COUNT(*) DESC; diff --git a/clickhouse/results/c6a.metal.tuned.json b/clickhouse/results/c6a.metal.tuned.json index 6c1cf889..aec8d942 100644 --- a/clickhouse/results/c6a.metal.tuned.json +++ b/clickhouse/results/c6a.metal.tuned.json @@ -1,58 +1,58 @@ { "system": "ClickHouse (tuned)", - "date": "2022-07-01", + "date": "2024-02-07", "machine": "c6a.metal, 500gb gp2", "cluster_size": 1, "comment": "", "tags": ["C++", "column-oriented", "ClickHouse derivative"], - "load_time": 136.869, - "data_size": 14571706777, + "load_time": 165.938, + "data_size": 14807919160, "result": [ -[0.003, 0.001, 0.001], -[0.046, 0.051, 0.035], -[0.044, 0.039, 0.040], -[0.074, 0.025, 0.036], -[0.231, 0.097, 0.089], -[0.970, 0.123, 0.120], -[0.017, 0.018, 0.019], -[0.030, 0.029, 0.023], -[0.180, 0.153, 0.137], -[0.946, 0.269, 0.283], -[0.116, 0.062, 0.060], -[0.195, 0.056, 0.059], -[1.026, 0.158, 0.137], -[1.575, 0.188, 0.176], -[0.837, 0.153, 0.161], -[0.192, 0.122, 0.123], -[1.767, 0.340, 0.324], -[1.088, 0.098, 0.098], -[3.413, 0.891, 0.787], -[0.039, 0.021, 0.012], -[9.017, 0.292, 0.258], -[10.048, 0.286, 0.251], -[20.084, 0.454, 0.445], -[39.564, 0.718, 0.741], -[1.762, 0.056, 0.046], -[0.894, 0.035, 0.043], -[2.421, 0.061, 0.047], -[10.479, 0.447, 0.439], -[7.089, 0.282, 0.270], -[0.429, 0.384, 0.395], -[1.284, 0.093, 0.091], -[4.753, 0.183, 0.159], -[3.618, 1.030, 0.714], -[8.792, 0.636, 0.623], -[8.765, 0.626, 0.603], -[0.213, 0.195, 0.206], -[0.103, 0.074, 0.067], -[0.047, 0.035, 0.034], -[0.053, 0.035, 0.033], -[0.198, 0.166, 0.142], -[0.035, 0.026, 0.019], -[0.027, 0.019, 0.027], -[0.027, 0.014, 0.016] + [0.007, 0.010, 0.006], + [0.027, 0.027, 0.023], + [0.048, 0.025, 0.024], + [0.170, 0.024, 0.021], + [0.223, 0.122, 0.110], + [0.910, 0.139, 0.131], + [0.056, 0.019, 0.020], + [0.032, 0.034, 0.030], + [0.337, 0.184, 0.171], + [0.773, 0.299, 0.305], + [0.163, 0.049, 0.056], + [0.171, 0.063, 0.061], + [1.079, 0.171, 0.145], + [1.578, 0.216, 0.180], + [0.828, 0.158, 0.152], + [0.230, 0.130, 0.131], + [1.780, 0.376, 0.343], + [1.142, 0.115, 0.106], + [3.364, 0.678, 0.607], + [0.083, 0.028, 0.026], + [8.824, 0.149, 0.122], + [10.257, 0.176, 0.151], + [13.896, 0.160, 0.139], + [10.755, 0.558, 0.526], + [1.786, 0.053, 0.047], + [0.929, 0.040, 0.035], + [2.452, 0.051, 0.047], + [9.375, 0.164, 0.147], + [7.434, 0.195, 0.176], + [0.085, 0.037, 0.037], + [1.281, 0.121, 0.110], + [4.700, 0.174, 0.153], + [3.749, 0.959, 0.731], + [9.136, 0.684, 0.584], + [9.126, 0.683, 0.625], + [0.213, 0.193, 0.176], + [0.075, 0.054, 0.051], + [0.045, 0.032, 0.037], + [0.059, 0.037, 0.042], + [0.092, 0.052, 0.046], + [0.033, 0.033, 0.029], + [0.029, 0.030, 0.039], + [0.047, 0.047, 0.043] ] }