你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu下使用icc/ifort/MKL编译R及性能实测

[日期:2012-07-12] 来源:road2stat.com  作者:R2S [字体:大 中 小]

3 性能测试
根据 AT&T Research R Benchmark 提供的 R-benchmark-25.R 和 bench.R 做了简单的性能测试, 测试主要涵盖了常用的矩阵计算.

3.1 默认安装的测试结果
= R-benchmark-25.R =

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

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

II. Matrix functions
--------------------
FFT over 2,400,000 random values____________________ (sec):  1.50533333333333
Eigenvalues of a 640x640 random matrix______________ (sec):  3.05366666666669
Determinant of a 2500x2500 random matrix____________ (sec):  12.1626666666667
Cholesky decomposition of a 3000x3000 matrix________ (sec):  11.2026666666667
Inverse of a 1600x1600 random matrix________________ (sec):  9.61066666666667
--------------------------------------------
Trimmed geom. mean (2 extremes eliminated):  6.90185004025158

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

Total time for all 15 tests_________________________ (sec):  92.8720000000001
Overall mean (sum of I, II and III trimmed means/3)_ (sec):  3.53358695795615
--- End of test ---

= bench.R =

[1] "hilbert n=500"
用户  系统  流逝
0.604 0.016 0.657
用户  系统  流逝
0.492 0.040 0.531
用户  系统  流逝
0.508 0.024 0.533
[1] "hilbert n=1000"
用户  系统  流逝
3.480 0.140 3.624
用户  系统  流逝
2.768 0.108 2.879
用户  系统  流逝
2.904 0.128 3.037
[1] "sort n=6"
用户  系统  流逝
0.536 0.036 0.568
用户  系统  流逝
0.548 0.020 0.569
用户  系统  流逝
0.544 0.024 0.568
[1] "sort n=7"
用户  系统  流逝
6.921 0.232 7.161
用户  系统  流逝
6.840 0.184 7.034
用户  系统  流逝
6.989 0.184 7.212
[1] "loess n=3"
用户  系统  流逝
0.084 0.000 0.188
用户  系统  流逝
0.080 0.000 0.081
用户 系统 流逝
0.08 0.00 0.08
用户  系统  流逝
0.080 0.000 0.079
用户  系统  流逝
0.080 0.000 0.081
[1] "loess n=4"
用户  系统  流逝
7.120 0.004 7.125
用户  系统  流逝
7.113 0.000 7.119
用户  系统  流逝
7.100 0.000 7.109
用户  系统  流逝
7.109 0.000 7.116
用户  系统  流逝
7.112 0.000 7.119

linux
相关资讯       R  ifort  
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款