Skip to content

Commit 2ea8636

Browse files
committed
docs
1 parent ce5b69b commit 2ea8636

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/intro.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mat1k = rand(3,1000);
4747

4848
On recent versions of Julia, `mapcols` has become much faster, 5-10 times.
4949

50-
FWIW, times on Julia 1.7-dev & and M1 mac, April 2021:
50+
FWIW, times on Julia 1.8-dev & and M1 mac, June 2021:
5151

5252
```
5353
@btime mapreduce(fun, hcat, eachcol($mat1k)) # 616.250 μs (2317 allocations: 11.69 MiB)
@@ -57,8 +57,12 @@ FWIW, times on Julia 1.7-dev & and M1 mac, April 2021:
5757
@btime MapCols(fun, $mat1k) # 6.217 μs (9 allocations: 47.20 KiB)
5858
5959
@btime ForwardDiff.gradient(m -> sum(mapslices(fun, m, dims=1)), $mat1k); # 70.815 ms (1877210 allocations: 210.64 MiB)
60+
6061
@btime Tracker.gradient(m -> sum(mapcols(fun, m)), $mat1k); # 29.840 ms (598046 allocations: 26.20 MiB)
6162
@btime Tracker.gradient(m -> sum(MapCols{3}(fun, m)), $mat1k); # 25.833 μs (60 allocations: 283.23 KiB)
63+
64+
julia> @btime Zygote.gradient(m -> sum(mapcols(fun, m)), $mat1k); # 93.750 μs (4047 allocations: 392.14 KiB)
65+
julia> @btime Zygote.gradient(m -> sum(MapCols{3}(fun, m)), $mat1k); # 14.834 μs (18 allocations: 164.73 KiB)
6266
```
6367

6468
## Other packages

0 commit comments

Comments
 (0)