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

Call VZEROALL for a 21% benchmark improvement #21

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

Jille
Copy link
Collaborator

@Jille Jille commented Oct 15, 2024

goos: linux
goarch: amd64
pkg: github.com/bwesterb/go-and
cpu: 13th Gen Intel(R) Core(TM) i9-13900
          │     asm     │          with_vzeroall/asm          │
          │   sec/op    │   sec/op     vs base                │
And-32      631.2n ± 2%   518.4n ± 1%  -17.87% (p=0.000 n=10)
Or-32       626.4n ± 1%   515.0n ± 1%  -17.79% (p=0.000 n=10)
Xor-32      631.6n ± 1%   518.6n ± 1%  -17.88% (p=0.000 n=10)
AndNot-32   635.2n ± 2%   517.8n ± 1%  -18.49% (p=0.000 n=10)

          │     asm      │          with_vzeroall/asm           │
          │     B/s      │     B/s       vs base                │
And-32      47.21Gi ± 2%   57.49Gi ± 1%  +21.77% (p=0.000 n=10)
Or-32       47.58Gi ± 1%   57.87Gi ± 1%  +21.63% (p=0.000 n=10)
Xor-32      47.19Gi ± 1%   57.47Gi ± 1%  +21.78% (p=0.000 n=10)
AndNot-32   46.92Gi ± 2%   57.56Gi ± 1%  +22.68% (p=0.000 n=10)

After change to smaller buffers.
```
goos: linux
goarch: amd64
pkg: github.com/bwesterb/go-and
cpu: 13th Gen Intel(R) Core(TM) i9-13900
          │     asm     │          with_vzeroall/asm          │
          │   sec/op    │   sec/op     vs base                │
And-32      631.2n ± 2%   518.4n ± 1%  -17.87% (p=0.000 n=10)
Or-32       626.4n ± 1%   515.0n ± 1%  -17.79% (p=0.000 n=10)
Xor-32      631.6n ± 1%   518.6n ± 1%  -17.88% (p=0.000 n=10)
AndNot-32   635.2n ± 2%   517.8n ± 1%  -18.49% (p=0.000 n=10)

          │     asm      │          with_vzeroall/asm           │
          │     B/s      │     B/s       vs base                │
And-32      47.21Gi ± 2%   57.49Gi ± 1%  +21.77% (p=0.000 n=10)
Or-32       47.58Gi ± 1%   57.87Gi ± 1%  +21.63% (p=0.000 n=10)
Xor-32      47.19Gi ± 1%   57.47Gi ± 1%  +21.78% (p=0.000 n=10)
AndNot-32   46.92Gi ± 2%   57.56Gi ± 1%  +22.68% (p=0.000 n=10)
```
@bwesterb bwesterb merged commit cd9bb24 into bwesterb:main Oct 15, 2024
1 check passed
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.

2 participants