2
A
回答
6
使用system.time
,或看看microbenchmark
包。
3
您还可以使用rbenchmark
包中的benchmark
函数。请参阅帮助文件here
0
如果它不能由system.time()
评估一个复杂的脚本,请尝试:
start_time = proc.time()
<your script here>
end_time = proc.time()
print(end_time - start_time)
显然,你需要运行线1-3彼此接近越好。
有一些例子here。
相关问题
- 1. bash中的等价命令失败?
- 2. Python中的等价命令
- 3. Intellij的Eclipse等价命令
- 4. 在PowerShell中的Unix时间命令的等价物?
- 5. 等价命令$ USER IN windows命令行
- 6. 在Bash或命令行中打印“ - ”x20的perl的等价物
- 7. Mac等价于arecord命令?
- 8. bluetoothctl to hcitool等价命令
- 9. `tee`命令等价于* input *?
- 10. 等效于BASH(etc)'type'命令的PowerShell?
- 11. curl命令的等价http请求
- 12. CMD命令的MS-DOS等价物?
- 13. ruby中的openssl等价命令
- 14. curl命令的宁静等价物
- 15. AIX中的jps等价命令
- 16. OS X中的GNU Linker等价命令
- 17. awk命令到PowerShell的等价
- 18. python等价的MATLAB命令prod
- 19. 做命令2时,命令1在bash
- 20. 命名等价与等价结构之间的区别?
- 21. 杀bash脚本与等待命令
- 22. 等待命令返回bash脚本
- 23. PHP的preg_quote等价于Bash?
- 24. Bash的scanf等价物?
- 25. 在X时间运行Bash命令并终止X时间
- 26. Visual Studio等价于Unix'文件'命令
- 27. Java servlet等价于命令行PHP?
- 28. Python等价于shell查找命令
- 29. 等价命令matlab <> opencv
- 30. MYSQL等价于Sybase ASE命令?
您正在查找的函数是'system.time()'。 – A5C1D2H2I1M1N2O1R2T1
您可能还想在这里尝试搜索:在右上角的搜索栏中输入'[r] time'会让您的结果(带有R标签)很快导致'system.time()'。 –