Skip to content

Commit 343ea17

Browse files
authored
Merge pull request #183 from fonsp/patch-1
fix dead links
2 parents 6562022 + e2d8241 commit 343ea17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ BenchmarkTools.Trial:
5353
evals/sample: 1000
5454
```
5555

56-
For quick sanity checks, one can use the [`@btime` macro](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#benchmarking-basics), which is a convenience wrapper around `@benchmark` whose output is analogous to Julia's built-in [`@time` macro](https://docs.julialang.org/en/latest/base/base/#Base.@time):
56+
For quick sanity checks, one can use the [`@btime` macro](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#benchmarking-basics), which is a convenience wrapper around `@benchmark` whose output is analogous to Julia's built-in [`@time` macro](https://docs.julialang.org/en/v1/base/base/#Base.@time):
5757

5858
```julia
5959
julia> @btime sin(x) setup=(x=rand())
@@ -62,7 +62,7 @@ julia> @btime sin(x) setup=(x=rand())
6262
```
6363

6464
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
65-
[avoid the problems of benchmarking with globals](https://docs.julialang.org/en/latest/manual/performance-tips/#Avoid-global-variables-1).
65+
[avoid the problems of benchmarking with globals](https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-global-variables).
6666
Essentially, any interpolated variable `$x` or expression `$(...)` is "pre-computed" before benchmarking begins:
6767

6868
```julia

0 commit comments

Comments
 (0)