Skip to content

Commit 63be4cd

Browse files
JeffFesslerararslan
authored andcommitted
fix link to manual (#132)
for benchmarking with globals
1 parent cd3fb8e commit 63be4cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ julia> @btime sin(1)
4141
0.8414709848078965
4242
```
4343

44-
If the expression you want to benchmark depends on external variables, you should use [`$` to "interpolate"](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#interpolating-values-into-benchmark-expressions) them into the benchmark expression to [avoid the problems of benchmarking with globals](https://docs.julialang.org/en/stable/manual/performance-tips/#Avoid-global-variables-1). Essentially, any interpolated variable `$x` or expression `$(...)` is "pre-computed" before benchmarking begins:
44+
If the expression you want to benchmark depends on external variables, you should use [`$` to "interpolate"](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#interpolating-values-into-benchmark-expressions) them into the benchmark expression to
45+
[avoid the problems of benchmarking with globals](https://docs.julialang.org/en/latest/manual/performance-tips/#Avoid-global-variables-1).
46+
Essentially, any interpolated variable `$x` or expression `$(...)` is "pre-computed" before benchmarking begins:
4547

4648
```julia
4749
julia> A = rand(3,3);

0 commit comments

Comments
 (0)