aboutsummaryrefslogtreecommitdiff
path: root/internal/speed/speed.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/speed/speed.go')
-rw-r--r--internal/speed/speed.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/speed/speed.go b/internal/speed/speed.go
index 231a982..0b1a51a 100644
--- a/internal/speed/speed.go
+++ b/internal/speed/speed.go
@@ -27,6 +27,16 @@ const blockSize = 4096
// Run - run the speed the test and print the results.
func Run() {
+ cpu := cpuModelName()
+ if cpu == "" {
+ cpu = "unknown"
+ }
+ aes := "; no AES acceleration"
+ if stupidgcm.CpuHasAES() {
+ aes = "; with AES acceleration"
+ }
+ fmt.Printf("cpu: %s%s\n", cpu, aes)
+
bTable := []struct {
name string
f func(*testing.B)