November 2016
Intermediate to advanced
697 pages
14h 44m
English
The tools described in this chapter, particularly the @time macro, are useful to identify and investigate bottlenecks in our program. However, they are not very accurate for a fine-grained analysis of fast programs. If you want to, for example, compare two functions that take a few milliseconds to run, the amount of error and variability in the measurement will easily swamp the running time of this function.
The solution then is to use the Benchmarks.jl package for statistically accurate benchmarking. This package is not yet published in the official repository, but is stable and high-quality nevertheless. It can be installed with Pkg.clone("https://github.com/johnmyleswhite/Benchmarks.jl.git") ...
Read now
Unlock full access