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