[R-br] benchmarking

Gustavo Carvalho gustavo.bio em gmail.com
Sexta Outubro 28 15:37:05 BRST 2011


Archlinux, i5 2500K, 16gb, R 2.14.0 RC, ATLAS BLAS

   R Benchmark 2.5
   ===============
Number of times each test is run__________________________:  3

   I. Matrix calculation
   ---------------------
Creation, transp., deformation of a 2500x2500 matrix (sec):  0.399333333333336
2400x2400 normal distributed random matrix ^1000____ (sec):  0.451333333333338
Sorting of 7,000,000 random values__________________ (sec):  0.685333333333347
2800x2800 cross-product matrix (b = a' * a)_________ (sec):  0.375333333333325
Linear regr. over a 3000x3000 matrix (c = a \ b')___ (sec):  0.238666666666669
                      --------------------------------------------
                 Trimmed geom. mean (2 extremes eliminated):  0.407458488296548

   II. Matrix functions
   --------------------
FFT over 2,400,000 random values____________________ (sec):  0.326666666666654
Eigenvalues of a 640x640 random matrix______________ (sec):  0.886666666666675
Determinant of a 2500x2500 random matrix____________ (sec):  0.296333333333346
Cholesky decomposition of a 3000x3000 matrix________ (sec):  0.224666666666678
Inverse of a 1600x1600 random matrix________________ (sec):  0.283333333333341
                      --------------------------------------------
                Trimmed geom. mean (2 extremes eliminated):  0.30157430299104

   III. Programmation
   ------------------
3,500,000 Fibonacci numbers calculation (vector calc)(sec):  0.761666666666675
Creation of a 3000x3000 Hilbert matrix (matrix calc) (sec):  0.363999999999995
Grand common divisors of 400,000 pairs (recursion)__ (sec):  2.066
Creation of a 500x500 Toeplitz matrix (loops)_______ (sec):  0.725333333333329
Escoufier's method on a 45x45 matrix (mixed)________ (sec):  0.393000000000001
                      --------------------------------------------
                Trimmed geom. mean (2 extremes eliminated):  0.60103308440432


Total time for all 15 tests_________________________ (sec):  8.47766666666671
Overall mean (sum of I, II and III trimmed means/3)_ (sec):  0.419558019844545


2011/10/28 Leonard de Assis <assis.leonard em gmail.com>:
> Segue meu teste na minha 1a config:
>
> SAMSUNG RF411
> Core i5 2a Geração 6 GB RAM
> Windows 7 Pro x64
> R 2.13.1 x64 Sem BLAS (Tem BLAS pra Intel64?)
>
>   R Benchmark 2.5
>   ===============
> Number of times each test is run__________________________:  3
>
>   I. Matrix calculation
>   ---------------------
> Creation, transp., deformation of a 2500x2500 matrix (sec):
> 0.563333333333333
> 2400x2400 normal distributed random matrix ^1000____ (sec):
> 3.33333333333333
> Sorting of 7,000,000 random values__________________ (sec):
> 0.840000000000001
> 2800x2800 cross-product matrix (b = a' * a)_________ (sec):
> 14.0966666666667
> Linear regr. over a 3000x3000 matrix (c = a \ b')___ (sec):
> 6.73333333333333
>                      --------------------------------------------
>                 Trimmed geom. mean (2 extremes eliminated):
> 2.66151784278081
>
>   II. Matrix functions
>   --------------------
> FFT over 2,400,000 random values____________________ (sec):
> 0.486666666666669
> Eigenvalues of a 640x640 random matrix______________ (sec):
> 0.946666666666658
> Determinant of a 2500x2500 random matrix____________ (sec):
> 3.56000000000001
> Cholesky decomposition of a 3000x3000 matrix________ (sec):
> 5.14666666666668
> Inverse of a 1600x1600 random matrix________________ (sec):
> 3.53666666666667
>                      --------------------------------------------
>                Trimmed geom. mean (2 extremes eliminated):
> 2.28426807887244
>
>   III. Programmation
>   ------------------
> 3,500,000 Fibonacci numbers calculation (vector calc)(sec):
> 4.11333333333333
> Creation of a 3000x3000 Hilbert matrix (matrix calc) (sec):
> 0.506666666666661
> Grand common divisors of 400,000 pairs (recursion)__ (sec):
> 0.770000000000001
> Creation of a 500x500 Toeplitz matrix (loops)_______ (sec):
> 0.816666666666663
> Escoufier's method on a 45x45 matrix (mixed)________ (sec):  0.5
>                      --------------------------------------------
>                Trimmed geom. mean (2 extremes eliminated):
> 0.682997786213496
>
>
> Total time for all 15 tests_________________________ (sec):  45.95
> Overall mean (sum of I, II and III trimmed means/3)_ (sec):
> 1.60730606307823
>                      --- End of test ---
>
> Warning messages:
> 1: package 'Matrix' was built under R version 2.13.2
> 2: package 'SuppDists' was built under R version 2.13.2
>
> []s
> Leonard de Assis
> assis <dot> leonard <at> gmail <dot> com
>
>
> Em 28/10/2011 11:33, Benilton Carvalho escreveu:
>> Aos interessados em fazer algum benchmarking, aqui uma sugestao:
>>
>> 1) Instale o pacote SuppDists
>> 2) Execute:
>>
>> source('http://r.research.att.com/benchmarks/R-benchmark-25.R')
>>
>> 3) Reporte aqui:
>>
>> a) Informacao de Hardware
>> b) Versao do R
>> c) Informacoes adicionais relevantes (BLAS / LAPACK / etc)
>> d) Resultados do benchmark...
>>
>> Para o meu caso:
>>
>> Mac Pro 4,1
>> Quad-Core Xeon 2.93GHz x 2 HT
>> 16G RAM
>> R 2.13.2 (binario padrao) + ATLAS BLAS
>>
>> Resultados:
>>
>>
>>    R Benchmark 2.5
>>    ===============
>> Number of times each test is run__________________________:  3
>>
>>    I. Matrix calculation
>>    ---------------------
>> Creation, transp., deformation of a 2500x2500 matrix (sec):  0.617666666666613
>> 2400x2400 normal distributed random matrix ^1000____ (sec):  0.267000000000053
>> Sorting of 7,000,000 random values__________________ (sec):  0.821333333333352
>> 2800x2800 cross-product matrix (b = a' * a)_________ (sec):  0.37166666666667
>> Linear regr. over a 3000x3000 matrix (c = a \ b')___ (sec):  0.316000000000031
>>                       --------------------------------------------
>>                  Trimmed geom. mean (2 extremes eliminated):  0.417059757745061
>>
>>    II. Matrix functions
>>    --------------------
>> FFT over 2,400,000 random values____________________ (sec):  0.489666666666684
>> Eigenvalues of a 640x640 random matrix______________ (sec):  0.65166666666668
>> Determinant of a 2500x2500 random matrix____________ (sec):  0.430999999999964
>> Cholesky decomposition of a 3000x3000 matrix________ (sec):  0.331666666666706
>> Inverse of a 1600x1600 random matrix________________ (sec):  0.471333333333329
>>                       --------------------------------------------
>>                 Trimmed geom. mean (2 extremes eliminated):  0.463342341088548
>>
>>    III. Programmation
>>    ------------------
>> 3,500,000 Fibonacci numbers calculation (vector calc)(sec):  0.721333333333367
>> Creation of a 3000x3000 Hilbert matrix (matrix calc) (sec):  0.472333333333268
>> Grand common divisors of 400,000 pairs (recursion)__ (sec):  2.30133333333337
>> Creation of a 500x500 Toeplitz matrix (loops)_______ (sec):  0.733999999999999
>> Escoufier's method on a 45x45 matrix (mixed)________ (sec):  0.533999999999992
>>                       --------------------------------------------
>>                 Trimmed geom. mean (2 extremes eliminated):  0.656333300289129
>>
>>
>> Total time for all 15 tests_________________________ (sec):  9.53200000000008
>> Overall mean (sum of I, II and III trimmed means/3)_ (sec):  0.502429238538774
>>                       --- End of test ---
>> _______________________________________________
>> R-br mailing list
>> R-br em listas.c3sl.ufpr.br
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.
>


Mais detalhes sobre a lista de discussão R-br