Skip to content

Commit 26460a8

Browse files
authored
Merge pull request #4 from heltonmc/heltonmc-patch-1
add Float64 benchmark in readme
2 parents bf8b48d + 681e7ed commit 26460a8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,15 @@ julia> @btime besselk1(x) setup=(x=Float32(10.0*rand()))
4747
| besseli1 | 7x |
4848
| besselk0 | 5x |
4949
| besselk1 | 5x |
50+
51+
```julia
52+
# SpecialFunctions.jl
53+
julia> @btime besselk(1, x) setup=(x=10.0*rand())
54+
184.726 ns (1 allocation: 16 bytes) # notice the small difference in Float32 and Float64 implementations
55+
0.0007517428778913419
56+
57+
# Bessels.jl
58+
julia> @btime besselk1(x) setup=(x=10.0*rand())
59+
47.824 ns (0 allocations: 0 bytes)
60+
0.0057366790518002045
61+
```

0 commit comments

Comments
 (0)