Closed VictorRodriguez closed 1 year ago
It seems that the benchmark running with the driver has something wrong. Could you please run it with "--bench_log stdout" like “../utility/rbench.py --bench_log stdout R-benchmark-25.R ”. Then it will dump the commands and logs into your console. And you can check what happened.
$ ../utility/rbench.py R-benchmark-25.R Logging the times in rbench.csv [rbench]R-benchmark-25.R - Pure warmup run() 2 times ['Rscript', '--vanilla', '/home/vrodri3/BAT/R/benchmarks/utility/r_harness.R', 'TRUE', 'FALSE', '2', 'R-benchmark-25.R', ''] [rbench]R-benchmark-25.R - Warmup + Bench run() 7 times ['Rscript', '--vanilla', '/home/vrodri3/BAT/R/benchmarks/utility/r_harness.R', 'TRUE', 'FALSE', '7', 'R-benchmark-25.R', ''] [rbench]R-benchmark-25.R - Metrics for one execution of run() nan,time =================== R Benchmark Report =================== 2015-07-03 11:10:06 +0000 (CDT)
This is taking few seconds,however if I run as ( take the proper time ) :
$ Rscript R-benchmark-25.R Loading required package: Matrix Loading required package: methods
R Benchmark 2.5
Number of times each test is run__: 3
I. Matrix calculation
Creation, transp., deformation of a 2500x2500 matrix (sec): 1.06433333333333 2400x2400 normal distributed random matrix ^1000 (sec): 0.708000000000001 Sorting of 7,000,000 random values__ (sec): 0.867333333333333 2800x2800 cross-product matrix (b = a' * a)___ (sec): 14.706 Linear regr. over a 3000x3000 matrix (c = a \ b')_ (sec): 6.38866666666667
II. Matrix functions
FFT over 2,400,000 random values____ (sec): 0.652333333333336 Eigenvalues of a 640x640 random matrix__ (sec): 0.964333333333338 Determinant of a 2500x2500 random matrix____ (sec): 2.17666666666666 hahahCholesky decomposition of a 3000x3000 matrix____ (sec): 1.89099999999999 Inverse of a 1600x1600 random matrix____ (sec): 2.24466666666667
III. Programmation
3,500,000 Fibonacci numbers calculation (vector calc)(sec): 0.73733333333333 Creation of a 3000x3000 Hilbert matrix (matrix calc) (sec): 0.278666666666661 Grand common divisors of 400,000 pairs (recursion)__ (sec): 0.538000000000001 Creation of a 500x500 Toeplitz matrix (loops)___ (sec): 0.383333333333345 Escoufier's method on a 45x45 matrix (mixed)____ (sec): 0.508999999999986
Total time for all 15 tests____ (sec): 34.1096666666667 Overall mean (sum of I, II and III trimmed means/3) (sec): 1.10505674235847 --- End of test ---
Why is this ? Am I running something wrong ?