HAYASHI Kentaro
null+****@clear*****
Wed Oct 31 11:13:16 JST 2012
HAYASHI Kentaro 2012-10-31 11:13:16 +0900 (Wed, 31 Oct 2012) New Revision: 230d42a097f9a7b432d3901686af02fcc8a98a16 https://github.com/groonga/groonga/commit/230d42a097f9a7b432d3901686af02fcc8a98a16 Log: test: add benchmark test pattern from 2nd to 4th 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 11:07:33 +0900 (d471c57) +++ test/benchmark/bench-geo-distance.c 2012-10-31 11:13:16 +0900 (335b8b7) @@ -232,6 +232,19 @@ bench_setup_rectangular_wgs84_4th_to_1st_quadrant_short(gpointer user_data) } static void +bench_setup_rectangular_wgs84_2nd_to_4th_quadrant_short(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "139380000x-31920000", + "-122100000x66300000", + GRN_DB_WGS84_GEO_POINT); + data->geo_distance_proc = GET(data->context, "geo_distance"); +} + +static void bench_setup_rectangular_wgs84_1st_to_2nd_quadrant_long(gpointer user_data) { BenchmarkData *data = user_data; @@ -451,6 +464,8 @@ main(int argc, gchar **argv) rectangular_wgs84_1st_to_3rd_quadrant_short); REGISTER("rectangular (WGS84 Cape Town to Tokyo)", rectangular_wgs84_3rd_to_1st_quadrant_short); + REGISTER("rectangular (WGS84 Lisbon to Cape Town)", + rectangular_wgs84_2nd_to_4th_quadrant_short); REGISTER("spherical (WGS84)", spherical_wgs84); REGISTER("spherical (TOKYO)", spherical_tgs); REGISTER("hubeny (WGS84)", hubeny_wgs84); -------------- next part -------------- HTML����������������������������... Download