Skip to content
Performance table

Performance table

Nanoseconds per element for every function measured.

1000000 points per call, median of 5 interleaved rounds; darwin/arm64, GOMAXPROCS=16; host load at start: 23:36 up 17 days, 10:34, 1 user, load averages: 7.67 16.16 32.74

functionSciPy (ns/elem)Go scalar loop (ns/elem)Go nd parallel (ns/elem)scalar speed-upparallel speed-up
Gamma13.445.56.40.30x2.10x
LogGamma7.026.13.90.27x1.78x
Digamma9.122.63.30.40x2.75x
Beta43.1149.820.40.29x2.11x
LogBeta24.4132.017.30.19x1.41x
Erf8.827.73.60.32x2.45x
Erfc7.935.14.40.22x1.78x
Erfcx5.519.82.70.28x2.09x
ErfInv10.145.95.90.22x1.71x
ErfcInv9.145.35.90.20x1.53x
Ndtr9.035.54.70.25x1.90x
Ndtri7.770.18.80.11x0.88x
LogNdtr9.271.29.10.13x1.01x
Expit3.827.43.90.14x0.98x
Logit5.139.65.30.13x0.95x
Log1pExp8.024.63.40.33x2.36x
Xlogy3.814.83.30.26x1.13x
Zeta15.121.53.00.70x5.09x
HurwitzZeta130.8988.7113.10.13x1.16x
Polygamma1136.0221.328.10.61x4.85x
GammaP136.5301.536.50.45x3.74x
GammaPInv469.01498.7131.40.31x3.57x
BetaInc234.83241.7305.60.07x0.77x
J012.6130.416.80.10x0.75x
Y012.9143.317.10.09x0.76x
I015.8199.925.60.08x0.62x
K015.672.89.30.21x1.67x
Jv1347.67427.2717.00.18x1.88x
Kv494.56923.1651.30.07x0.76x
EllipK9.597.412.40.10x0.77x
EllipE8.897.012.40.09x0.71x

Created on by tannevaled

Modified on by tannevaled