Little more sophisticated test [#METR-21614].

This commit is contained in:
Alexey Milovidov 2016-06-11 17:35:23 +03:00
parent 9485e493d1
commit c75f42891f
2 changed files with 36 additions and 0 deletions

View File

@ -1 +1,36 @@
4986 4986
0 1 0
1 1 1
2 1 2
3 2 4
4 2 6
5 4 9
6 6 14
7 8 21
8 13 31
9 19 47
10 29 71
11 43 107
12 65 161
13 97 242
14 146 364
15 219 546
16 329 820
17 492 1231
18 739 1846
19 1109 2770
20 1662 4156
21 2494 6234
22 3741 8129
23 5612 4028
24 8417 4205
25 12625 5777
26 18939 4724
27 28407 4724
28 42612 5290
29 63917 5026
30 95875 4965
31 143813 5026
32 215720 4965
33 323580 5026
34 29261 5124

View File

@ -1 +1,2 @@
SELECT quantileTiming(number) FROM (SELECT * FROM system.numbers LIMIT 10000); SELECT quantileTiming(number) FROM (SELECT * FROM system.numbers LIMIT 10000);
SELECT floor(log(1 + number) / log(1.5)) AS k, count() AS c, quantileTiming(number % 10000) AS q FROM (SELECT * FROM system.numbers LIMIT 1000000) GROUP BY k ORDER BY k;