Skip to content

Conversation

@elementrics
Copy link
Contributor

To test performance difference on arm64 chips: "go test -benchmem -run=^$ ./sign/internal/dilithium -bench=MulBy2"

On my machine (Apple M1 Max) on average:

BenchmarkMulBy2toDGeneric-10            13260348                88.91 ns/op            0 B/op          0 allocs/op
BenchmarkMulBy2toD-10                   78609487                15.04 ns/op            0 B/op          0 allocs/op

Also consider this are microbenchmarks!

@bwesterb bwesterb self-requested a review August 17, 2025 09:54
@bwesterb
Copy link
Member

Thanks again! Just waiting for CI to complete before merging.

@bwesterb bwesterb merged commit 4693da1 into cloudflare:main Aug 17, 2025
11 checks passed
@elementrics elementrics deleted the polyMulBy2toD branch August 17, 2025 10:03
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