null+****@clear*****
null+****@clear*****
2012年 7月 9日 (月) 15:38:22 JST
HAYASHI Kentaro 2012-07-09 15:38:22 +0900 (Mon, 09 Jul 2012) New Revision: 8a7e77ed234434da42a28ce4b5b032703554e857 https://github.com/groonga/groonga/commit/8a7e77ed234434da42a28ce4b5b032703554e857 Log: test: add more benchmark patterns refs #1420,#1421 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-09 15:43:09 +0900 (b7c4fee) +++ test/benchmark/bench-geo-distance.c 2012-07-09 15:38:22 +0900 (19dba72) @@ -233,6 +233,32 @@ bench_setup_rectangular_wgs84_4th_to_3rd_quadrant_short(gpointer user_data) } static void +bench_setup_rectangular_wgs84_3rd_to_4th_quadrant_long(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "-56880000x-172310000", + "-121926000x544351000", + GRN_DB_WGS84_GEO_POINT); + data->geo_distance_proc = GET(data->context, "geo_distance"); +} + +static void +bench_setup_rectangular_wgs84_4th_to_3rd_quadrant_long(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "-121926000x544351000", + "-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; @@ -332,6 +358,10 @@ main(int argc, gchar **argv) rectangular_wgs84_3rd_to_4th_quadrant_short); REGISTER("rectangular (WGS84 Cape Town to Brasplia)", rectangular_wgs84_4th_to_3rd_quadrant_short); + REGISTER("rectangular (WGS84 Brasplia to Sydney)", + rectangular_wgs84_3rd_to_4th_quadrant_long); + REGISTER("rectangular (WGS84 Sydney to Brasplia)", + rectangular_wgs84_4th_to_3rd_quadrant_long); 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...ダウンロード