Skip to content

Commit e61cba7

Browse files
authored
add benchmarks
1 parent a050c28 commit e61cba7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,34 @@
22

33
[![Build Status](https://github.com/"heltonmc"/Bessels.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/"heltonmc"/Bessels.jl/actions/workflows/CI.yml?query=branch%3Amain)
44
[![Coverage](https://codecov.io/gh/"heltonmc"/Bessels.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/"heltonmc"/Bessels.jl)
5+
6+
7+
# Benchmarks
8+
9+
Comparing the relative speed (`SpecialFunctions.jl / Bessels.jl`) for a vector of values between 0 and 100.
10+
11+
## Float32
12+
13+
| function | Relative speed |
14+
| ------------- | ------------- |
15+
| besselj0 | 1.7x |
16+
| besselj1 | 1.7x |
17+
| bessely0 | 1.6x |
18+
| bessely1 | 1.6x |
19+
| besseli0 | 24x |
20+
| besseli1 | 22x |
21+
| besselk0 | 13x |
22+
| besselk1 | 15x |
23+
24+
## Float64
25+
26+
| function | Relative speed |
27+
| ------------- | ------------- |
28+
| besselj0 | 1.7x |
29+
| besselj1 | 1.9x |
30+
| bessely0 | 1.5x |
31+
| bessely1 | 1.5x |
32+
| besseli0 | 9x |
33+
| besseli1 | 7x |
34+
| besselk0 | 5x |
35+
| besselk1 | 5x |

0 commit comments

Comments
 (0)