Commits

Sven Hager committed 84f7fa1

benchmark stuff

Comments (0)

Files changed (5)

rapydo/benchmarks/analyse_bm_results.py

 reset
 fontsize = 16
 set term postscript enhanced eps fontsize
-set yrange [-4:*]
+set yrange [-4:8]
 set grid
 set output "%(leafs)d_leafs_speedup.eps"
 set xlabel "Number of additions" font "bold, 18"
 reset
 fontsize = 16
 set term postscript enhanced eps fontsize
-set yrange [-4:*]
+set yrange [-12:*]
 set grid
 set output "%(leafs)d_leafs_rdm_speedup.eps"
 set xlabel "Number of operations" font "bold, 18"

rapydo/benchmarks/leaf_add_benchmarks.R

 	start * 1
 }
 
-init1 <- 1:50
+init1 <- as.numeric(1:50)
 for (i in 1:50) init1[i] <- 1
 init1 <- as.numeric(init1)
 
-init2 <- 1:500
+init2 <- as.numeric(1:500)
 for (i in 1:500) init2[i] <- 1
 init2 <- as.numeric(init2)
 
-init3 <- 1:5000
+init3 <- as.numeric(1:5000)
 for (i in 1:5000) init3[i] <- 1
 init3 <- as.numeric(init3)
 
-init4 <- 1:50000
+init4 <- as.numeric(1:50000)
 for (i in 1:50000) init4[i] <- 1
 init4 <- as.numeric(init4)
 
 			for (i in 1:WARMUP)
 				add_arithmetic(init, init, NUM)
 			for (i in 1:NUM_ITER) {
+				gc()
 				t0 <- proc.time()[3]
 				add_arithmetic(init, init, NUM)
 				t1 <- proc.time()[3]

rapydo/benchmarks/leaf_random_arith_benchmarks.R

 	start * 1
 }
 
-init1 <- 1:50
+init1 <- as.numeric(1:50)
 for (i in 1:50) init1[i] <- 1
 init1 <- as.numeric(init1)
 
-init2 <- 1:500
+init2 <- as.numeric(1:500)
 for (i in 1:500) init2[i] <- 1
 init2 <- as.numeric(init2)
 
-init3 <- 1:5000
+init3 <- as.numeric(1:5000)
 for (i in 1:5000) init3[i] <- 1
 init3 <- as.numeric(init3)
 
-init4 <- 1:50000
+init4 <- as.numeric(1:50000)
 for (i in 1:50000) init4[i] <- 1
 init4 <- as.numeric(init4)
 
 			}
 			for (i in 1:NUM_ITER) {
 				indices <- as.integer(runif(NUM, 1, 5))
+				gc()
 				t0 <- proc.time()[3]
 				arithmetic_ops(init, init, NUM, funcs, indices)
 				t1 <- proc.time()[3]

rapydo/benchmarks/na/rapydo_jit_float_benchmark.R

 NUM <- 50
-WARMUP <- 10
+WARMUP <- 2
 
 init1 <- as.numeric(1:5000)
 for (i in 1:5000) init1[i] <- 1

rapydo/benchmarks/na/rapydo_jit_float_no_na_benchmark.R

 NUM <- 50
-WARMUP <- 10
+WARMUP <- 2
 
 init1 <- as.numeric(1:5000)
 for (i in 1:5000) init1[i] <- 1