benchmark(fun(200),array(f(1:200^3), c(200, 200, 200)),replications = 10)
# test replications elapsed relative user.self
#2 array(f(1:200^3), c(200, 200, 200)) 10 72.72 1.273 57.89
#1 fun(200) 10 57.11 1.000 35.61
请问你的电脑是什么配置啊。。比我测试的快了十几倍。。