Added more items to the test_data.json while testing multithreading
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
			
		||||
#define EARTH_RADIUS_KM 6371.0
 | 
			
		||||
 | 
			
		||||
#if DEBUG
 | 
			
		||||
#define ITEM_COUNT 2
 | 
			
		||||
#define ITEM_COUNT 4
 | 
			
		||||
#else
 | 
			
		||||
#define ITEM_COUNT 10000000
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
#define EARTH_RADIUS_KM 6371.0
 | 
			
		||||
 | 
			
		||||
#if DEBUG
 | 
			
		||||
#define ITEM_COUNT 2
 | 
			
		||||
#define ITEM_COUNT 4
 | 
			
		||||
#else
 | 
			
		||||
#define ITEM_COUNT 10000000
 | 
			
		||||
#endif
 | 
			
		||||
@@ -95,10 +95,9 @@ int main(int argc, char *argv[]) {
 | 
			
		||||
         ITEM_COUNT / ((double)(end_time - start_time) / CLOCKS_PER_SEC));
 | 
			
		||||
 | 
			
		||||
#if DEBUG
 | 
			
		||||
  int precision = 16;
 | 
			
		||||
  for (int i = 0; i < ITEM_COUNT; ++i) {
 | 
			
		||||
    printf("%.*f\n%.*f\n%.*f\n%.*f\n\n", precision, items[i].x0, precision,
 | 
			
		||||
           items[i].y0, precision, items[i].x1, precision, items[i].y1);
 | 
			
		||||
    printf("%.16f\n%.16f\n%.16f\n%.16f\n\n", items[i].x0, items[i].y0,
 | 
			
		||||
           items[i].x1, items[i].y1);
 | 
			
		||||
  }
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user