File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ using BenchmarkTools
2
+ using Bessels
3
+
4
+ suite = BenchmarkGroup ()
5
+
6
+ suite[" besseli" ] = BenchmarkGroup ()
7
+ suite[" besseli" ][" besseli0" ] = @benchmarkable besseli (0 , x) setup= (x = rand ()* 100 )
8
+ suite[" besseli" ][" besseli1" ] = @benchmarkable besseli (1 , x) setup= (x = rand ()* 100 )
9
+ suite[" besseli" ][" besseli20" ] = @benchmarkable besseli (20 , x) setup= (x = rand ()* 100 )
10
+ suite[" besseli" ][" besseli200" ] = @benchmarkable besseli (120 , x) setup= (x = rand ()* 100 )
11
+
12
+ suite[" besselk" ] = BenchmarkGroup ()
13
+ suite[" besselk" ][" besselk0" ] = @benchmarkable besselk (0 , x) setup= (x = rand ()* 100 )
14
+ suite[" besselk" ][" besselk1" ] = @benchmarkable besselk (1 , x) setup= (x = rand ()* 100 )
15
+ suite[" besselk" ][" besselk20" ] = @benchmarkable besselk (20 , x) setup= (x = rand ()* 100 )
16
+ suite[" besselk" ][" besselk200" ] = @benchmarkable besselk (120 , x) setup= (x = rand ()* 100 )
17
+
18
+ suite[" besselj" ] = BenchmarkGroup ()
19
+ suite[" besselj" ][" besselj0" ] = @benchmarkable besselj0 (x) setup= (x = rand ()* 100 )
20
+ suite[" besselj" ][" besselj1" ] = @benchmarkable besselj1 (x) setup= (x = rand ()* 100 )
21
+
22
+ suite[" bessely" ] = BenchmarkGroup ()
23
+ suite[" bessely" ][" bessely0" ] = @benchmarkable besselj0 (x) setup= (x = rand ()* 100 )
24
+ suite[" bessely" ][" bessely1" ] = @benchmarkable besselj1 (x) setup= (x = rand ()* 100 )
25
+
26
+ # tune!(suite)
You can’t perform that action at this time.
0 commit comments