HAYASHI Kentaro
null+****@clear*****
Wed Oct 31 11:01:29 JST 2012
HAYASHI Kentaro 2012-10-31 11:01:29 +0900 (Wed, 31 Oct 2012) New Revision: 1f85b59732025b2e92dca182b3ce147f9fc3c7ac https://github.com/groonga/groonga/commit/1f85b59732025b2e92dca182b3ce147f9fc3c7ac Log: test: add benchmark test pattern from 1st to 3rd quadrant refs #1534 Modified files: test/benchmark/bench-geo-distance.c Modified: test/benchmark/bench-geo-distance.c (+15 -0) =================================================================== --- test/benchmark/bench-geo-distance.c 2012-10-31 10:56:48 +0900 (daa24e1) +++ test/benchmark/bench-geo-distance.c 2012-10-31 11:01:29 +0900 (c2a8c7b) @@ -180,6 +180,19 @@ bench_setup_rectangular_wgs84_2nd_to_1st_quadrant_short(gpointer user_data) } static void +bench_setup_rectangular_wgs84_1st_to_3rd_quadrant_short(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "128452975x503157902", + "-56880000x-172310000", + GRN_DB_WGS84_GEO_POINT); + data->geo_distance_proc = GET(data->context, "geo_distance"); +} + +static void bench_setup_rectangular_wgs84_1st_to_4th_quadrant_short(gpointer user_data) { BenchmarkData *data = user_data; @@ -421,6 +434,8 @@ main(int argc, gchar **argv) rectangular_wgs84_2nd_to_3rd_quadrant_short); REGISTER("rectangular (WGS84 Cape Town to Lisbon)", rectangular_wgs84_3rd_to_2nd_quadrant_short); + REGISTER("rectangular (WGS84 Tokyo to Cape Town)", + rectangular_wgs84_1st_to_3rd_quadrant_short); REGISTER("spherical (WGS84)", spherical_wgs84); REGISTER("spherical (TOKYO)", spherical_tgs); REGISTER("hubeny (WGS84)", hubeny_wgs84); -------------- next part -------------- HTML����������������������������... Download