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