diff --git a/dbms/tests/performance/grear_circle_dist.xml b/dbms/tests/performance/grear_circle_dist.xml new file mode 100644 index 00000000000..bb26605bd89 --- /dev/null +++ b/dbms/tests/performance/grear_circle_dist.xml @@ -0,0 +1,15 @@ + + once + + + + 1000 + 10000 + + + + + SELECT count() FROM system.numbers WHERE NOT ignore(greatCircleDistance((rand() % 360) * 1. - 180, (number % 150) * 1.2 - 90, (number % 360) + toFloat64(rand()) / 4294967296 - 180, (rand() % 180) * 1. - 90)) + + SELECT count() FROM system.numbers WHERE NOT ignore(greatCircleDistance(55. + toFloat64(rand()) / 4294967296, 37. + toFloat64(rand()) / 4294967296, 55. + toFloat64(rand()) / 4294967296, 37. + toFloat64(rand()) / 4294967296)) +