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

refactor aead implementation #476

Merged
merged 20 commits into from
Aug 29, 2024
Merged

refactor aead implementation #476

merged 20 commits into from
Aug 29, 2024

Conversation

komuw
Copy link
Owner

@komuw komuw commented Aug 28, 2024

go test -run=XXXX -bench=BenchmarkEnc -count=10 github.com/komuw/ong/cry > old.txt
go test -run=XXXX -bench=BenchmarkEnc -count=10 github.com/komuw/ong/cry > new.txt
benchstat old.txt new.txt

goos: linux
goarch: amd64
pkg: github.com/komuw/ong/cry
cpu: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
      │   old.txt   │            new.txt            │
      │   sec/op    │   sec/op     vs base          │
Enc-4   5.713µ ± 6%   5.756µ ± 7%  ~ (p=0.853 n=10)

      │  old.txt   │            new.txt             │
      │    B/op    │    B/op     vs base            │
Enc-4   672.0 ± 0%   672.0 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

      │  old.txt   │            new.txt             │
      │ allocs/op  │ allocs/op   vs base            │
Enc-4   14.00 ± 0%   14.00 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@komuw komuw changed the title g aead2 Aug 28, 2024
…cry > old.txt

go test -run=XXXX -bench=BenchmarkEnc -count=10 github.com/komuw/ong/cry > new.txt
benchstat old.txt new.txt

goos: linux
goarch: amd64
pkg: github.com/komuw/ong/cry
cpu: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
      │   old.txt   │            new.txt            │
      │   sec/op    │   sec/op     vs base          │
Enc-4   5.713µ ± 6%   5.714µ ± 9%  ~ (p=0.579 n=10)

      │  old.txt   │              new.txt              │
      │    B/op    │    B/op     vs base               │
Enc-4   672.0 ± 0%   728.0 ± 0%  +8.33% (p=0.000 n=10)

      │  old.txt   │              new.txt               │
      │ allocs/op  │ allocs/op   vs base                │
Enc-4   14.00 ± 0%   16.00 ± 0%  +14.29% (p=0.000 n=10)
goarch: amd64
pkg: github.com/komuw/ong/cry
cpu: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
      │   old.txt   │            new.txt            │
      │   sec/op    │   sec/op     vs base          │
Enc-4   5.713µ ± 6%   5.756µ ± 7%  ~ (p=0.853 n=10)

      │  old.txt   │            new.txt             │
      │    B/op    │    B/op     vs base            │
Enc-4   672.0 ± 0%   672.0 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

      │  old.txt   │            new.txt             │
      │ allocs/op  │ allocs/op   vs base            │
Enc-4   14.00 ± 0%   14.00 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal
@komuw komuw changed the base branch from aead to main August 29, 2024 10:02
@komuw komuw changed the title aead2 refactor aead implementation Aug 29, 2024
@komuw komuw merged commit 3353366 into main Aug 29, 2024
4 checks passed
@komuw komuw deleted the aead2 branch August 29, 2024 10:37
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.

1 participant