null+****@clear*****
null+****@clear*****
2012年 7月 3日 (火) 18:40:38 JST
HAYASHI Kentaro 2012-07-03 18:40:38 +0900 (Tue, 03 Jul 2012) New Revision: 18b70a527970aecd27d505952670bc39f777dcca https://github.com/groonga/groonga/commit/18b70a527970aecd27d505952670bc39f777dcca Log: test: add more benchmark pattern for #1418 and #1419 Modified files: test/benchmark/bench-geo-distance.c Modified: test/benchmark/bench-geo-distance.c (+30 -0) =================================================================== --- test/benchmark/bench-geo-distance.c 2012-07-03 18:38:35 +0900 (6af7768) +++ test/benchmark/bench-geo-distance.c 2012-07-03 18:40:38 +0900 (b7c4fee) @@ -207,6 +207,32 @@ bench_setup_rectangular_wgs84_2nd_to_1st_quadrant_long(gpointer user_data) } static void +bench_setup_rectangular_wgs84_3rd_to_4th_quadrant_short(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "-56880000x-172310000", + "-122100000x66300000", + GRN_DB_WGS84_GEO_POINT); + data->geo_distance_proc = GET(data->context, "geo_distance"); +} + +static void +bench_setup_rectangular_wgs84_4th_to_3rd_quadrant_short(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "-122100000x66300000", + "-56880000x-172310000", + GRN_DB_WGS84_GEO_POINT); + data->geo_distance_proc = GET(data->context, "geo_distance"); +} + +static void bench_setup_spherical_wgs84(gpointer user_data) { BenchmarkData *data = user_data; @@ -302,6 +328,10 @@ main(int argc, gchar **argv) rectangular_wgs84_1st_to_2nd_quadrant_long); REGISTER("rectangular (WGS84 San Francisco to Tokyo)", rectangular_wgs84_2nd_to_1st_quadrant_long); + REGISTER("rectangular (WGS84 Brasplia to Cape Town)", + rectangular_wgs84_3rd_to_4th_quadrant_short); + REGISTER("rectangular (WGS84 Cape Town to Brasplia)", + rectangular_wgs84_4th_to_3rd_quadrant_short); REGISTER("spherical (WGS84)", spherical_wgs84); REGISTER("spherical (TOKYO)", spherical_tgs); REGISTER("hubeny (WGS84)", hubeny_wgs84); -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...下載