Skip to content

Commit

Permalink
fix aes benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
miolini committed Jan 26, 2016
1 parent 03877c3 commit c288caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secure/crypt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func BenchmarkEncryptAesCbc(b *testing.B) {
}
b.StopTimer()
ts := time.Since(t)
b.Logf("encrypt speed: %.2f Mbit/s", float64(counter) * 8 / ts.Seconds() / 1024 / 1024 )
b.Logf("encryption speed: %.2f Mbit/s", float64(counter) * 8 / ts.Seconds() / 1024 / 1024 )
}

func BenchmarkDescryptAesCbc(b *testing.B) {
Expand All @@ -72,5 +72,5 @@ func BenchmarkDescryptAesCbc(b *testing.B) {
}
b.StopTimer()
ts := time.Since(t)
b.Logf("encrypt speed: %.2f Mbit/s", float64(counter) * 8 / ts.Seconds() / 1024 / 1024 )
b.Logf("decryption speed: %.2f Mbit/s", float64(counter) * 8 / ts.Seconds() / 1024 / 1024 )
}

0 comments on commit c288caa

Please sign in to comment.