Skip to content

Commit dc49c38

Browse files
authoredFeb 21, 2021
1 parent 1ab8367 commit dc49c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Perf-measure.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ There are some other limitations to profiling:
204204
205205
A __microbenchmark__ is a measurement of the performance of a very small piece of code, something that might take milliseconds (ms), microseconds (µs), or nanoseconds (ns) to run. Microbenchmarks are useful for comparing small snippets of code for specific tasks. Be very wary of generalising the results of microbenchmarks to real code: the observed differences in microbenchmarks will typically be dominated by higher-order effects in real code; a deep understanding of subatomic physics is not very helpful when baking.
206206
207-
A great tool for microbenchmarking in R is the bench package [@bench]. The bench package uses a a high precision timer, making it possible to compare operations that only take a tiny amount of time. For example, the following code compares the speed of two approaches to computing a square root.
207+
A great tool for microbenchmarking in R is the bench package [@bench]. The bench package uses a high precision timer, making it possible to compare operations that only take a tiny amount of time. For example, the following code compares the speed of two approaches to computing a square root.
208208
209209
```{r bench-sqrt}
210210
x <- runif(100)

0 commit comments

Comments
 (0)
Please sign in to comment.