File: reduce_test_time

package info (click to toggle)
siril 1.4.0~beta2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 45,412 kB
  • sloc: ansic: 170,949; cpp: 28,244; python: 5,904; makefile: 976; xml: 658; sh: 271
file content (21 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Reduce the test functions runtime to avoid timeout in som slow builds
--- siril.orig/src/tests/measure_sorting.c
+++ siril/src/tests/measure_sorting.c
@@ -94,7 +94,7 @@ void MeasureSmall()
 {
 	int datasize = 8;
 	int nb_draws = 100;
-	int nb_times_each = 200000;
+	int nb_times_each = 2000;
 
 	fprintf(stdout, "== small dataset (%d elements, %d different draws run %d times)\n",
 			datasize, nb_draws, nb_times_each);
@@ -110,7 +110,7 @@ void MeasureSmall()
 
 void MeasureBig()
 {
-	int datasize = 30000000;
+	int datasize = 300000;
 
 	fprintf(stdout, "== large dataset (%d elements, same for each)\n", datasize);