@@ -24,28 +24,29 @@ As expected, this is much faster than the numeric integral solution
2424``` julia
2525using QuadGK
2626using FresnelIntegrals
27+ using BenchmarkTools
2728
2829julia> @benchmark fresnelc (1.8 )
29- BenchmarkTools. Trial: 10000 samples with 772 evaluations.
30- Range (min … max): 161.448 ns … 1.744 μs ┊ GC (min … max): 0.00 % … 0.00 %
31- Time (median): 163.927 ns ┊ GC (median): 0.00 %
32- Time (mean ± σ): 164.460 ns ± 16.519 ns ┊ GC (mean ± σ): 0.00 % ± 0.00 %
30+ BenchmarkTools. Trial: 10000 samples with 961 evaluations.
31+ Range (min … max): 86.629 ns … 192.074 ns ┊ GC (min … max): 0.00 % … 0.00 %
32+ Time (median): 89.056 ns ┊ GC (median): 0.00 %
33+ Time (mean ± σ): 90.710 ns ± 5.423 ns ┊ GC (mean ± σ): 0.00 % ± 0.00 %
3334
34- ▃▄▂ ▁▇█▄ ▁ ▃▄▂▁ ▁▁▁ ▂
35- ███▇▁▃▁▁▁▁▁▁▁▁▁▁▅▇▅ █████▁▄▄▄▆▆▅▆▆█▇▆ █████▇▆▅▅▇ ██████▇▇▆▇▇▆▅▆ █
36- 161 ns Histogram: log (frequency) by time 168 ns <
35+ ▆▆█▅ ▇█▃ ▁▂▄▃ ▂▃▂▁▂▁▂▂▂▂▂▁▁▁ ▁ ▁ ▂
36+ ████▇███▇ ██████ █████████████████████████▇▇█▇▇▇▆▆▆▇▆▇▆▆▆▇▆▆▆▅ █
37+ 86.6 ns Histogram: log (frequency) by time 111 ns <
3738
3839 Memory estimate: 0 bytes, allocs estimate: 0.
3940
40- julia> @benchmark quadgk (t-> cos (π * t^ 2 / 2 ),0 ,1.8 )
41- BenchmarkTools. Trial: 10000 samples with 187 evaluations.
42- Range (min … max): 548.321 ns … 48.949 μs ┊ GC (min … max): 0.00 % … 98.43 %
43- Time (median): 554.893 ns ┊ GC (median): 0.00 %
44- Time (mean ± σ): 599.010 ns ± 558.147 ns ┊ GC (mean ± σ): 2.25 % ± 3.29 %
41+ julia> @benchmark quadgk (t-> cospi ( t^ 2 / 2 ),0 ,1.8 )
42+ BenchmarkTools. Trial: 10000 samples with 201 evaluations.
43+ Range (min … max): 394.697 ns … 2.443 μs ┊ GC (min … max): 0.00 % … 79.19 %
44+ Time (median): 411.279 ns ┊ GC (median): 0.00 %
45+ Time (mean ± σ): 424.133 ns ± 75.245 ns ┊ GC (mean ± σ): 0.65 % ± 3.09 %
4546
46- ▅█▆▂▄▃▃ ▁▁▁▁▁ ▂▁ ▁▁▁▁▂▁ ▁
47- ███████████████▇▅▆▅▄▃▅▄▅▅▅▄▄▃▄ ████████▇▇▆▆▇▆▆▆▇▇▇▇▇ █████████▇ █
48- 548 ns Histogram: log (frequency) by time 754 ns <
47+ ▄▄▂▂▄▇██▆▃▁▁▂▂▃▃▄▄▄▄▃▄▃▂▂ ▁▁▁▁▂▂▂▂▂▁ ▂▁ ▂
48+ ▂ ███████████████████████████████████████████▇▇█▇█▇▇▇▇▅▅▄▅▆▅▅ █
49+ 395 ns Histogram: log (frequency) by time 499 ns <
4950
5051 Memory estimate: 368 bytes, allocs estimate: 2.
51- ```
52+ ```
0 commit comments