Skip to content

Commit 013d9b9

Browse files
authored
Fix benchmarktools (#101)
1 parent 5098cc1 commit 013d9b9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

optimizing/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[deps]
22
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
33
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
4+
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
45
Cthulhu = "f68482b8-f384-11e8-15f7-abe071a5a75f"
6+
DispatchDoctor = "8d63f2c5-f18a-4cf2-ba9d-b3f60fc568c8"
57
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
68
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

optimizing/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Because code needs to be compiled before it can be run, you should first run a f
4444
```>time-example
4545
sum_abs(vec) = sum(abs(x) for x in vec);
4646
v = rand(100);
47+
48+
using BenchmarkTools
4749
@time sum_abs(v); # Inaccurate, note the >99% compilation time
4850
@time sum_abs(v); # Accurate
4951
```

0 commit comments

Comments
 (0)