DataCamp 硬件
对很多问题来说,耗时的往往是您的时间。如果更快的电脑能提升您的效率,购买一台可能更划算。不过,在为自己添置新设备之前,您的老板或伴侣可能希望看到一些数据来证明这笔开支的合理性。衡量电脑性能称为基准测试 (benchmarking),您可以使用 benchmarkme 包来完成这项工作。
本练习是课程的一部分
高效 R 代码写作
练习说明
加载 benchmarkme 包之后:
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Load the benchmarkme package
library(___)
# Assign the variable ram to the amount of RAM on this machine
ram <- ___
ram
# Assign the variable cpu to the cpu specs
cpu <- ___
cpu