Skip to content

Commit

Permalink
Update benchmarks in README now that our purego memset is optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
Jille committed Jul 23, 2024
1 parent 6e433ea commit 16164b2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ goos: linux
goarch: amd64
pkg: github.com/bwesterb/go-and
cpu: 13th Gen Intel(R) Core(TM) i9-13900
│ naive │ purego │ asm │
│ sec/op │ sec/op vs base │ sec/op vs base │
And-32 273.05µ ± 5% 64.48µ ± 2% -76.39% (p=0.000 n=10) 21.88µ ± 1% -91.99% (p=0.000 n=10)
Or-32 274.70µ ± 6% 64.36µ ± 1% -76.57% (p=0.000 n=10) 21.81µ ± 1% -92.06% (p=0.000 n=10)
AndNot-32 310.78µ ± 2% 71.01µ ± 2% -77.15% (p=0.000 n=10) 21.83µ ± 1% -92.98% (p=0.000 n=10)
Memset-32 167.77µ ± 0% 167.55µ ± 0% -0.13% (p=0.002 n=10) 15.88µ ± 1% -90.53% (p=0.000 n=10)
Popcnt-32 126.84µ ± 0% 71.42µ ± 1% -43.69% (p=0.000 n=10) 32.48µ ± 1% -74.40% (p=0.000 n=10)
geomean 218.3µ 81.18µ -62.82% 22.18µ -89.84%
│ naive │ purego │ asm │
│ sec/op │ sec/op vs base │ sec/op vs base │
And-32 264.51µ ± 6% 64.69µ ± 1% -75.54% (p=0.000 n=10) 24.43µ ± 3% -90.77% (p=0.000 n=10)
Or-32 274.06µ ± 5% 64.89µ ± 2% -76.32% (p=0.000 n=10) 24.30µ ± 1% -91.13% (p=0.000 n=10)
AndNot-32 309.01µ ± 0% 73.10µ ± 1% -76.34% (p=0.000 n=10) 24.52µ ± 2% -92.07% (p=0.000 n=10)
Memset-32 225.74µ ± 4% 56.64µ ± 1% -74.91% (p=0.000 n=10) 15.77µ ± 1% -93.01% (p=0.000 n=10)
Popcnt-32 128.45µ ± 1% 69.35µ ± 0% -46.01% (p=0.000 n=10) 31.80µ ± 3% -75.24% (p=0.000 n=10)
geomean 230.4µ 65.50µ -71.58% 23.59µ -89.76%
│ naive │ purego │ asm │
│ B/s │ B/s vs base │ B/s vs base │
And-32 3.411Gi ± 5% 14.444Gi ± 2% +323.45% (p=0.000 n=10) 42.560Gi ± 1% +1147.72% (p=0.000 n=10)
Or-32 3.391Gi ± 7% 14.470Gi ± 1% +326.78% (p=0.000 n=10) 42.708Gi ± 1% +1159.61% (p=0.000 n=10)
AndNot-32 2.997Gi ± 2% 13.116Gi ± 2% +337.68% (p=0.000 n=10) 42.665Gi ± 1% +1323.72% (p=0.000 n=10)
Memset-32 5.551Gi ± 0% 5.559Gi ± 0% +0.13% (p=0.002 n=10) 58.642Gi ± 1% +956.36% (p=0.000 n=10)
Popcnt-32 7.342Gi ± 0% 13.040Gi ± 1% +77.60% (p=0.000 n=10) 28.677Gi ± 1% +290.57% (p=0.000 n=10)
geomean 4.266Gi 11.47Gi +168.93% 41.98Gi +884.14%
And-32 3.521Gi ± 6% 14.397Gi ± 2% +308.89% (p=0.000 n=10) 38.129Gi ± 3% +982.90% (p=0.000 n=10)
Or-32 3.398Gi ± 6% 14.353Gi ± 2% +322.36% (p=0.000 n=10) 38.319Gi ± 1% +1027.60% (p=0.000 n=10)
AndNot-32 3.014Gi ± 0% 12.740Gi ± 1% +322.71% (p=0.000 n=10) 37.988Gi ± 2% +1160.45% (p=0.000 n=10)
Memset-32 4.126Gi ± 3% 16.444Gi ± 1% +298.59% (p=0.000 n=10) 59.051Gi ± 1% +1331.33% (p=0.000 n=10)
Popcnt-32 7.251Gi ± 1% 13.428Gi ± 0% +85.20% (p=0.000 n=10) 29.288Gi ± 3% +303.94% (p=0.000 n=10)
geomean 4.042Gi 14.22Gi +251.80% 39.49Gi +876.93%
```

0 comments on commit 16164b2

Please sign in to comment.