File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ go tool pprof mem.prof
114
114
### 2019 MacBook Pro 2.3GHz Intel i9
115
115
116
116
``` console
117
- name time/op
118
- Threefish256/encrypt-16 112ns ± 0%
119
- Threefish256/decrypt-16 140ns ± 0%
120
- Threefish512/encrypt-16 298ns ± 0%
121
- Threefish512/decrypt-16 271ns ± 0%
122
- Threefish1024/encrypt-16 734ns ± 0%
123
- Threefish1024/decrypt-16 681ns ± 0%
117
+ name time/op speed
118
+ Threefish256/encrypt-16 124ns ± 0% 259MB/s ± 0%
119
+ Threefish256/decrypt-16 156ns ± 0% 206MB/s ± 0%
120
+ Threefish512/encrypt-16 338ns ± 0% 189MB/s ± 0%
121
+ Threefish512/decrypt-16 310ns ± 0% 206MB/s ± 0%
122
+ Threefish1024/encrypt-16 804ns ± 0% 159MB/s ± 0%
123
+ Threefish1024/decrypt-16 778ns ± 0% 165MB/s ± 0%
124
124
```
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ func BenchmarkThreefish1024(b *testing.B) {
173
173
174
174
for n := 0 ; n < b .N ; n ++ {
175
175
block .Encrypt (ciphertext , message )
176
+ b .SetBytes (blockSize1024 )
176
177
}
177
178
},
178
179
)
@@ -184,6 +185,7 @@ func BenchmarkThreefish1024(b *testing.B) {
184
185
185
186
for n := 0 ; n < b .N ; n ++ {
186
187
block .Decrypt (ciphertext , ciphertext )
188
+ b .SetBytes (blockSize1024 )
187
189
}
188
190
},
189
191
)
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ func BenchmarkThreefish256(b *testing.B) {
172
172
173
173
for n := 0 ; n < b .N ; n ++ {
174
174
block .Encrypt (ciphertext , message )
175
+ b .SetBytes (blockSize256 )
175
176
}
176
177
},
177
178
)
@@ -183,6 +184,7 @@ func BenchmarkThreefish256(b *testing.B) {
183
184
184
185
for n := 0 ; n < b .N ; n ++ {
185
186
block .Decrypt (ciphertext , ciphertext )
187
+ b .SetBytes (blockSize256 )
186
188
}
187
189
},
188
190
)
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ func BenchmarkThreefish512(b *testing.B) {
173
173
174
174
for n := 0 ; n < b .N ; n ++ {
175
175
block .Encrypt (ciphertext , message )
176
+ b .SetBytes (blockSize512 )
176
177
}
177
178
},
178
179
)
@@ -184,6 +185,7 @@ func BenchmarkThreefish512(b *testing.B) {
184
185
185
186
for n := 0 ; n < b .N ; n ++ {
186
187
block .Decrypt (ciphertext , ciphertext )
188
+ b .SetBytes (blockSize512 )
187
189
}
188
190
},
189
191
)
You can’t perform that action at this time.
0 commit comments