HAYASHI Kentaro
null+****@clear*****
Wed Oct 31 10:27:47 JST 2012
HAYASHI Kentaro 2012-10-31 10:27:47 +0900 (Wed, 31 Oct 2012) New Revision: 27925b7392294c2f9c8f52cec87a7aeffdb3ee8a https://github.com/groonga/groonga/commit/27925b7392294c2f9c8f52cec87a7aeffdb3ee8a Log: test: add benchmark test pattern from 4th to 1st 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 10:25:07 +0900 (bef4870) +++ test/benchmark/bench-geo-distance.c 2012-10-31 10:27:47 +0900 (50ef02a) @@ -193,6 +193,19 @@ bench_setup_rectangular_wgs84_1st_to_4th_quadrant_long(gpointer user_data) } static void +bench_setup_rectangular_wgs84_4th_to_1st_quadrant_long(gpointer user_data) +{ + BenchmarkData *data = user_data; + + bench_setup_common(user_data); + bench_setup_points(user_data, + "-122100000x66300000", + "128452975x503157902", + 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; @@ -376,6 +389,8 @@ main(int argc, gchar **argv) rectangular_wgs84_4th_to_3rd_quadrant_long); REGISTER("rectangular (WGS84 Tokyo to Brasplia)", rectangular_wgs84_1st_to_4th_quadrant_short); + REGISTER("rectangular (WGS84 Brasplia to Tokyo)", + rectangular_wgs84_4th_to_1st_quadrant_short); REGISTER("spherical (WGS84)", spherical_wgs84); REGISTER("spherical (TOKYO)", spherical_tgs); REGISTER("hubeny (WGS84)", hubeny_wgs84); -------------- next part -------------- HTML����������������������������... Download