HAYASHI Kentaro
null+****@clear*****
Wed Oct 31 10:25:07 JST 2012
HAYASHI Kentaro 2012-10-31 10:25:07 +0900 (Wed, 31 Oct 2012) New Revision: cf39da79d03123d90aae662ff267943ea85af833 https://github.com/groonga/groonga/commit/cf39da79d03123d90aae662ff267943ea85af833 Log: test: add benchmark test pattern from 1st 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-30 18:34:36 +0900 (0607353) +++ test/benchmark/bench-geo-distance.c 2012-10-31 10:25:07 +0900 (bef4870) @@ -180,6 +180,19 @@ bench_setup_rectangular_wgs84_2nd_to_1st_quadrant_short(gpointer user_data) } static void +bench_setup_rectangular_wgs84_1st_to_4th_quadrant_long(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "128452975x503157902", + "-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; @@ -361,6 +374,8 @@ main(int argc, gchar **argv) rectangular_wgs84_3rd_to_4th_quadrant_long); REGISTER("rectangular (WGS84 Sydney to Brasplia)", rectangular_wgs84_4th_to_3rd_quadrant_long); + REGISTER("rectangular (WGS84 Tokyo to Brasplia)", + rectangular_wgs84_1st_to_4th_quadrant_short); REGISTER("spherical (WGS84)", spherical_wgs84); REGISTER("spherical (TOKYO)", spherical_tgs); REGISTER("hubeny (WGS84)", hubeny_wgs84); -------------- next part -------------- HTML����������������������������... 下載