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

sliceop{,/f64s}: introduce generics sliceop #931

Merged
merged 2 commits into from
Apr 4, 2022

Commits on Apr 4, 2022

  1. sliceop{,/f64s}: introduce generics sliceop

    Move and generalize code from sliceop/f64s into sliceop.
    
    name                old time/op    new time/op    delta
    Take/Len=2-8          2.69ns ± 1%    2.71ns ± 2%   +0.75%  (p=0.043 n=18+18)
    Take/Len=4-8          3.18ns ± 1%    3.23ns ± 3%   +1.27%  (p=0.005 n=19+20)
    Take/Len=8-8          3.83ns ± 1%    3.73ns ± 1%   -2.69%  (p=0.000 n=20+19)
    Take/Len=128-8        44.1ns ± 4%    35.9ns ± 2%  -18.61%  (p=0.000 n=20+20)
    Take/Len=1024-8        337ns ± 2%     280ns ± 6%  -16.73%  (p=0.000 n=19+20)
    Take/Len=1048576-8    1.37ms ± 3%    1.31ms ± 5%   -3.97%  (p=0.000 n=19+20)
    
    name                old alloc/op   new alloc/op   delta
    Take/Len=2-8           0.00B          0.00B          ~     (all equal)
    Take/Len=4-8           0.00B          0.00B          ~     (all equal)
    Take/Len=8-8           0.00B          0.00B          ~     (all equal)
    Take/Len=128-8         0.00B          0.00B          ~     (all equal)
    Take/Len=1024-8        0.00B          0.00B          ~     (all equal)
    Take/Len=1048576-8     0.00B          0.00B          ~     (all equal)
    
    name                old allocs/op  new allocs/op  delta
    Take/Len=2-8            0.00           0.00          ~     (all equal)
    Take/Len=4-8            0.00           0.00          ~     (all equal)
    Take/Len=8-8            0.00           0.00          ~     (all equal)
    Take/Len=128-8          0.00           0.00          ~     (all equal)
    Take/Len=1024-8         0.00           0.00          ~     (all equal)
    Take/Len=1048576-8      0.00           0.00          ~     (all equal)
    
    Updates go-hep#868.
    sbinet committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    c2ec83e View commit details
    Browse the repository at this point in the history
  2. sliceop: improve performances of Take

    name                old time/op    new time/op    delta
    Take/Len=2-8          2.95ns ± 2%    2.96ns ± 2%     ~     (p=0.952 n=20+20)
    Take/Len=4-8          3.43ns ± 1%    3.67ns ± 1%   +6.96%  (p=0.000 n=20+19)
    Take/Len=8-8          3.92ns ± 2%    4.17ns ± 1%   +6.31%  (p=0.000 n=19+20)
    Take/Len=128-8        36.4ns ± 2%    35.6ns ± 2%   -2.21%  (p=0.000 n=20+20)
    Take/Len=1024-8        278ns ± 5%     271ns ± 2%   -2.29%  (p=0.001 n=17+19)
    Take/Len=1048576-8    1.27ms ± 2%    0.67ms ± 6%  -46.97%  (p=0.000 n=19+20)
    
    name                old alloc/op   new alloc/op   delta
    Take/Len=2-8           0.00B          0.00B          ~     (all equal)
    Take/Len=4-8           0.00B          0.00B          ~     (all equal)
    Take/Len=8-8           0.00B          0.00B          ~     (all equal)
    Take/Len=128-8         0.00B          0.00B          ~     (all equal)
    Take/Len=1024-8        0.00B          0.00B          ~     (all equal)
    Take/Len=1048576-8     0.00B          0.00B          ~     (all equal)
    
    name                old allocs/op  new allocs/op  delta
    Take/Len=2-8            0.00           0.00          ~     (all equal)
    Take/Len=4-8            0.00           0.00          ~     (all equal)
    Take/Len=8-8            0.00           0.00          ~     (all equal)
    Take/Len=128-8          0.00           0.00          ~     (all equal)
    Take/Len=1024-8         0.00           0.00          ~     (all equal)
    Take/Len=1048576-8      0.00           0.00          ~     (all equal)
    sbinet committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    4f927c3 View commit details
    Browse the repository at this point in the history