jacoelho / banking

Banking library
MIT License
2 stars 1 forks source link

improve Mod9710 #46

Closed jacoelho closed 2 years ago

jacoelho commented 2 years ago

Improve Mod9710 package, also check details in chunks.

name               old time/op    new time/op    delta
Compute-12            543ns ± 0%      30ns ± 0%   -94.43%  (p=0.000 n=13+15)
IBANChecksumAL-12     643ns ± 1%     293ns ± 1%   -54.41%  (p=0.000 n=12+14)
IBANChecksumGB-12     600ns ± 0%     277ns ± 2%   -53.83%  (p=0.000 n=12+15)
IBANGenerateGB-12    1.19µs ± 1%    0.87µs ± 2%   -26.44%  (p=0.000 n=12+15)
IBANGenerateBR-12    1.37µs ± 1%    1.00µs ± 0%   -26.77%  (p=0.000 n=13+12)

name               old alloc/op   new alloc/op   delta
Compute-12            26.0B ± 0%      0.0B       -100.00%  (p=0.000 n=15+15)
IBANChecksumAL-12     34.0B ± 0%     32.0B ± 0%    -5.88%  (p=0.000 n=15+15)
IBANChecksumGB-12     34.0B ± 0%     32.0B ± 0%    -5.88%  (p=0.000 n=15+15)
IBANGenerateGB-12     58.0B ± 0%     56.0B ± 0%    -3.45%  (p=0.000 n=15+15)
IBANGenerateBR-12     66.0B ± 0%     75.0B ± 0%   +13.64%  (p=0.000 n=15+15)

name               old allocs/op  new allocs/op  delta
Compute-12             2.00 ± 0%      0.00       -100.00%  (p=0.000 n=15+15)
IBANChecksumAL-12      2.00 ± 0%      1.00 ± 0%   -50.00%  (p=0.000 n=15+15)
IBANChecksumGB-12      2.00 ± 0%      1.00 ± 0%   -50.00%  (p=0.000 n=15+15)
IBANGenerateGB-12      3.00 ± 0%      2.00 ± 0%   -33.33%  (p=0.000 n=15+15)
IBANGenerateBR-12      3.00 ± 0%      2.00 ± 0%   -33.33%  (p=0.000 n=15+15)