File: reduce_test_time

package info (click to toggle)
siril 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,256 kB
  • sloc: ansic: 112,798; cpp: 13,652; makefile: 708; sh: 232; xml: 203; python: 88
file content (21 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (3)
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
--- a/src/tests/measure_sorting.c
+++ b/src/tests/measure_sorting.c
@@ -74,7 +74,7 @@
 {
 	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);
@@ -90,7 +90,7 @@
 
 void MeasureBig()
 {
-	int datasize = 30000000;
+	int datasize = 300000;
 
 	fprintf(stdout, "== large dataset (%d elements, same for each)\n", datasize);