- R High Performance Programming
- Aloysius Lim William Tjhi
- 188字
- 2021-08-06 19:17:07
Chapter 2. Profiling – Measuring Code's Performance
The first step to improve the performance of R programs is to identify where the performance bottlenecks are occurring. To do this, we profile or measure the performance of an R program as it runs with respect to various measures such as execution time, memory utilization, CPU utilization, and disk I/O. This gives us a good idea of how the program and its parts perform, so that we can tackle the biggest bottlenecks first. This chapter will show you how to use a few simple tools to measure the performance of R programs.
The 80/20 rule is applied here. 80 percent of the possible performance improvements can usually be achieved by tackling 20 percent of the largest performance problems. We will look at how to determine which problems to solve first in order to get maximum improvement in the least amount of time and effort.
This chapter covers the following topics:
- Measuring the total execution time
- Profiling the execution time
- Profiling the memory utilization
- Monitoring memory utilization, CPU utilization, and disk I/O using OS tools
- Identifying and resolving bottlenecks
- Puppet 4 Essentials(Second Edition)
- Python科學計算(第2版)
- Getting started with Google Guava
- Oracle從新手到高手
- C語言程序設計學習指導與習題解答
- Create React App 2 Quick Start Guide
- ROS機器人編程實戰
- Visual Basic語言程序設計上機指導與練習(第3版)
- Java 11 and 12:New Features
- Learn Linux Quickly
- Raspberry Pi開發實戰
- 計算機常用算法與程序設計教程(第2版)
- Python從入門到項目實踐(超值版)
- Swift語言實戰晉級(第2版)
- Python快速編程入門