Skip to content

Commit

Permalink
Typo (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmstauss authored Feb 21, 2021
1 parent 1ab8367 commit dc49c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Perf-measure.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ There are some other limitations to profiling:

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.

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.
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.

```{r bench-sqrt}
x <- runif(100)
Expand Down

0 comments on commit dc49c38

Please sign in to comment.