BaşlayınÜcretsiz Başlayın

DataCamp hardware

For many problems your time is the expensive part. If having a faster computer makes you more productive, it can be cost effective to buy one. However, before you splash out on new toys for yourself, your boss/partner may want to see some numbers to justify the expense. Measuring the performance of your computer is called benchmarking, and you can do that with the benchmarkme package.

Bu egzersiz

Writing Efficient R Code

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

After you've loaded the benchmarkme package:

  • Obtain the amount of RAM on this machine using get_ram().
  • Obtain the CPU specifications using get_cpu().

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# 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
Kodu Düzenle ve Çalıştır