diff --git a/README.md b/README.md index bc76470..62bee27 100644 --- a/README.md +++ b/README.md @@ -114,11 +114,11 @@ go tool pprof mem.prof ### 2019 MacBook Pro 2.3GHz Intel i9 ```console -name time/op -Threefish256/encrypt-16 112ns ± 0% -Threefish256/decrypt-16 140ns ± 0% -Threefish512/encrypt-16 298ns ± 0% -Threefish512/decrypt-16 271ns ± 0% -Threefish1024/encrypt-16 734ns ± 0% -Threefish1024/decrypt-16 681ns ± 0% +name time/op speed +Threefish256/encrypt-16 124ns ± 0% 259MB/s ± 0% +Threefish256/decrypt-16 156ns ± 0% 206MB/s ± 0% +Threefish512/encrypt-16 338ns ± 0% 189MB/s ± 0% +Threefish512/decrypt-16 310ns ± 0% 206MB/s ± 0% +Threefish1024/encrypt-16 804ns ± 0% 159MB/s ± 0% +Threefish1024/decrypt-16 778ns ± 0% 165MB/s ± 0% ``` diff --git a/threefish1024_test.go b/threefish1024_test.go index 0a72384..3ed6ffb 100644 --- a/threefish1024_test.go +++ b/threefish1024_test.go @@ -173,6 +173,7 @@ func BenchmarkThreefish1024(b *testing.B) { for n := 0; n < b.N; n++ { block.Encrypt(ciphertext, message) + b.SetBytes(blockSize1024) } }, ) @@ -184,6 +185,7 @@ func BenchmarkThreefish1024(b *testing.B) { for n := 0; n < b.N; n++ { block.Decrypt(ciphertext, ciphertext) + b.SetBytes(blockSize1024) } }, ) diff --git a/threefish256_test.go b/threefish256_test.go index 8106a5c..7a2137b 100644 --- a/threefish256_test.go +++ b/threefish256_test.go @@ -172,6 +172,7 @@ func BenchmarkThreefish256(b *testing.B) { for n := 0; n < b.N; n++ { block.Encrypt(ciphertext, message) + b.SetBytes(blockSize256) } }, ) @@ -183,6 +184,7 @@ func BenchmarkThreefish256(b *testing.B) { for n := 0; n < b.N; n++ { block.Decrypt(ciphertext, ciphertext) + b.SetBytes(blockSize256) } }, ) diff --git a/threefish512_test.go b/threefish512_test.go index 9b411cb..6137105 100644 --- a/threefish512_test.go +++ b/threefish512_test.go @@ -173,6 +173,7 @@ func BenchmarkThreefish512(b *testing.B) { for n := 0; n < b.N; n++ { block.Encrypt(ciphertext, message) + b.SetBytes(blockSize512) } }, ) @@ -184,6 +185,7 @@ func BenchmarkThreefish512(b *testing.B) { for n := 0; n < b.N; n++ { block.Decrypt(ciphertext, ciphertext) + b.SetBytes(blockSize512) } }, )