在R中快速机器上的运行时间非常慢

时间:2018-06-08 10:55:08

标签: r performance runtime

我对新机器的R分析运行有点慢。所以我进行了一些基准测试以查看最新情况并发现我排在最后:

> res = benchmark_std()

编程基准测试(5项测试):

3,500,000 Fibonacci numbers calculation (vector calc): 0.483 (sec).
Grand common divisors of 1,000,000 pairs (recursion): 0.61 (sec).
Creation of a 3500x3500 Hilbert matrix (matrix calc): 0.19 (sec).
Creation of a 3000x3000 Toeplitz matrix (loops): 1.07 (sec).
Escoufier's method on a 60x60 matrix (mixed): 0.657 (sec).

矩阵计算基准(5项测试):

Creation, transp., deformation of a 5000x5000 matrix: 0.483 (sec).
2500x2500 normal distributed random matrix ^1000: 0.61 (sec).
Sorting of 7,000,000 random values: 0.54 (sec).
2500x2500 cross-product matrix (b = a' * a): 7.3 (sec).
Linear regr. over a 3000x3000 matrix (c = a \ b'): 4.92 (sec).

矩阵功能基准测试(5项测试):

Cholesky decomposition of a 3000x3000 matrix: 4.06 (sec).
Determinant of a 2500x2500 random matrix: 1.46 (sec).
Eigenvalues of a 640x640 random matrix: 0.427 (sec).
FFT over 2,500,000 random values: 0.193 (sec).
Inverse of a 1600x1600 random matrix: 1.3 (sec).

> plot(res)
You are ranked 49 out of 82 machines.
Press return to get next plot 
You are ranked 83 out of 83 machines.
Press return to get next plot 
You are ranked 82 out of 82 machines.

enter image description here

我的电脑规格让我怀疑这些结果:

> get_cpu()
$`vendor_id`
[1] "GenuineIntel"

$model_name
[1] "Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz"

$no_of_cores
[1] 12

> get_ram()
17.2 GB

> get_sys_details()
$`sys_info`$`sysname`
[1] "Windows"

$`sys_info`$release
[1] ">= 8 x64"

$`sys_info`$machine
[1] "x86-64"

$r_version$version.string
[1] "R version 3.5.0 (2018-04-23)"

我对恶意软件持怀疑态度,因为这是一台新机器。有谁知道这个问题是什么?

0 个答案:

没有答案