mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
d2c671c17e
80 mio arrays with 150 elements each, runtimes in sec WITH (SELECT vec FROM vectors limit 1) AS const_vec SELECT sum(dist) FROM (SELECT <distance>(const_vec, vec) AS dist FROM vectors) auto-vectorized hand-vectorized L2 Float32 0.61 0.57 L2 Float64 1.15 0.99 cos Float32 0.78 0.65 cos Float64 1.35 1.05
87 lines
2.3 KiB
Plaintext
87 lines
2.3 KiB
Plaintext
6
|
|
3.7416573867739413
|
|
14
|
|
3.2071843327373397
|
|
3
|
|
0.00258509695694209
|
|
\N
|
|
\N
|
|
nan
|
|
0 0 0 0 0
|
|
12
|
|
14
|
|
21
|
|
7.0710678118654755
|
|
9.16515138991168
|
|
12.12435565298214
|
|
50
|
|
84
|
|
147
|
|
5.917593844525055
|
|
8.308858759453505
|
|
9.932246380845738
|
|
2
|
|
5
|
|
4
|
|
0.16847815937970012
|
|
0.3584669721282153
|
|
0.07417990022744847
|
|
6
|
|
8
|
|
9
|
|
0.020204102886728692
|
|
0.11808289631180313
|
|
0
|
|
1 1 0 0 0 0 0 0
|
|
1 2 2031 788 981.3289733414064 1182.129011571918 1397429 0.1939823640079572
|
|
2 1 2031 788 981.3289733414064 1182.129011571918 1397429 0.1939823640079572
|
|
2 2 0 0 0 0 0 0
|
|
3 3 0 0 0 0 0 0
|
|
3 4 68 2 6.238144819822316 11.661903789690601 136 0.0010041996325123037
|
|
4 3 68 2 6.238144819822316 11.661903789690601 136 0.0010041996325123037
|
|
4 4 0 0 0 0 0 0
|
|
5 5 0 0 0 0 0 0
|
|
5 6 268 2 9.70940985211151 23.15167380558045 536 0.00007815428961455151
|
|
6 5 268 2 9.70940985211151 23.15167380558045 536 0.00007815428961455151
|
|
6 6 0 0 0 0 0 0
|
|
1 1 0 0 0 0 0 0
|
|
1 2 2031 788 992.2102 1182.129 1397429 0.19398236
|
|
2 1 2031 788 992.2102 1182.129 1397429 0.19398236
|
|
2 2 0 0 0 0 0 0
|
|
3 3 0 0 0 0 0 0
|
|
3 4 68 2 6.4792237 11.661903 136 0.0010041595
|
|
4 3 68 2 6.4792237 11.661903 136 0.0010041595
|
|
4 4 0 0 0 0 0 0
|
|
5 5 0 0 0 0 0 0
|
|
5 6 268 2 10.23446 23.151674 536 0.00007814169
|
|
6 5 268 2 10.23446 23.151674 536 0.00007814169
|
|
6 6 0 0 0 0 0 0
|
|
1 1 0 0 0 0 0 0
|
|
1 2 2031 788 992.2102104083964 1182.129011571918 1397429 0.1939823640079572
|
|
2 1 2031 788 992.2102104083964 1182.129011571918 1397429 0.1939823640079572
|
|
2 2 0 0 0 0 0 0
|
|
3 3 0 0 0 0 0 0
|
|
3 4 68 2 6.479223602554966 11.661903789690601 136 0.0010041996325123037
|
|
4 3 68 2 6.479223602554966 11.661903789690601 136 0.0010041996325123037
|
|
4 4 0 0 0 0 0 0
|
|
5 5 0 0 0 0 0 0
|
|
5 6 268 2 10.234459893824097 23.15167380558045 536 0.00007815428961455151
|
|
6 5 268 2 10.234459893824097 23.15167380558045 536 0.00007815428961455151
|
|
6 6 0 0 0 0 0 0
|
|
1 1 0 0 0 0 0 0
|
|
1 2 2031 788 992.2102104083964 1182.129011571918 1397429 0.1939823640079572
|
|
2 1 2031 788 992.2102104083964 1182.129011571918 1397429 0.1939823640079572
|
|
2 2 0 0 0 0 0 0
|
|
3 3 0 0 0 0 0 0
|
|
3 4 68 2 6.479223602554966 11.661903789690601 136 0.0010041996325123037
|
|
4 3 68 2 6.479223602554966 11.661903789690601 136 0.0010041996325123037
|
|
4 4 0 0 0 0 0 0
|
|
5 5 0 0 0 0 0 0
|
|
5 6 268 2 10.234459893824097 23.15167380558045 536 0.00007815428961455151
|
|
6 5 268 2 10.234459893824097 23.15167380558045 536 0.00007815428961455151
|
|
6 6 0 0 0 0 0 0
|
|
5.8309517
|
|
0.0003244877
|
|
5.830951894845301
|
|
0.0003245172890904424
|