func benchmarkAESGCMSeal(b *testing.B, buf []byte, keySize int) { … } func benchmarkAESGCMOpen(b *testing.B, buf []byte, keySize int) { … } func BenchmarkAESGCM(b *testing.B) { … } func benchmarkAESStream(b *testing.B, mode func(cipher.Block, []byte) cipher.Stream, buf []byte) { … } const almost1K … const almost8K … func BenchmarkAESCFBEncrypt1K(b *testing.B) { … } func BenchmarkAESCFBDecrypt1K(b *testing.B) { … } func BenchmarkAESCFBDecrypt8K(b *testing.B) { … } func BenchmarkAESOFB1K(b *testing.B) { … } func BenchmarkAESCTR1K(b *testing.B) { … } func BenchmarkAESCTR8K(b *testing.B) { … } func BenchmarkAESCBCEncrypt1K(b *testing.B) { … } func BenchmarkAESCBCDecrypt1K(b *testing.B) { … }