Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up with MutableArithmetics #343

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Speed up with MutableArithmetics #343

wants to merge 4 commits into from

Conversation

blegat
Copy link
Member

@blegat blegat commented Aug 9, 2024

Before

BenchmarkTools.Trial: 10000 samples with 4 evaluations.
 Range (min … max):   8.011 μs …  40.041 ms  ┊ GC (min … max):  0.00% … 99.93%
 Time  (median):      8.852 μs               ┊ GC (median):     0.00%
 Time  (mean ± σ):   15.422 μs ± 401.401 μs  ┊ GC (mean ± σ):  34.24% ±  4.36%

   ▃▅▇██▇▆▅▄▃▂▂▁▂▁▁▁▁                       ▁▂▃▄▄▄▄▄▃▃▂▂▁▁     ▃
  ▇█████████████████████▇▇█▆▇▅▆▁▅▁▁▄▃▁▁▃▁▃▆▇███████████████▇▇▆ █
  8.01 μs       Histogram: log(frequency) by time      16.6 μs <

 Memory estimate: 31.62 KiB, allocs estimate: 597.

After

BenchmarkTools.Trial: 10000 samples with 7 evaluations.
 Range (min … max):  4.033 μs …  17.567 ms  ┊ GC (min … max):  0.00% … 99.92%
 Time  (median):     4.293 μs               ┊ GC (median):     0.00%
 Time  (mean ± σ):   7.163 μs ± 175.969 μs  ┊ GC (mean ± σ):  30.43% ±  3.89%

  ▁▆██▇▅▃▁▁▁▁▁                           ▁▂▂▃▃▃▄▃▃▃▃▂▁        ▂
  ██████████████▇▆▆▆▆▆▅▅▄▄▂▄▄▅▅▇▇▆▄▃▂▄▆▆███████████████▇▇▇▅▅▅ █
  4.03 μs      Histogram: log(frequency) by time      8.13 μs <

 Memory estimate: 14.02 KiB, allocs estimate: 254.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant