Closed cannium closed 5 years ago
Example output:
$ go test -bench . goos: linux goarch: amd64 pkg: github.com/journeymidnight/yig/ceph BenchmarkCephCluster_Put/Put_small_pool_120K-40 300 5640262 ns/op --- BENCH: BenchmarkCephCluster_Put/Put_small_pool_120K-40 cluster_test.go:61: oid: 0:1 size: 122880 cluster_test.go:61: oid: 0:2 size: 122880 cluster_test.go:61: oid: 0:3 size: 122880 cluster_test.go:61: oid: 0:4 size: 122880 cluster_test.go:61: oid: 0:5 size: 122880 cluster_test.go:61: oid: 0:6 size: 122880 cluster_test.go:61: oid: 0:7 size: 122880 cluster_test.go:61: oid: 0:8 size: 122880 cluster_test.go:61: oid: 0:9 size: 122880 cluster_test.go:61: oid: 0:10 size: 122880 ... [output truncated] BenchmarkCephCluster_Put/Put_big_pool_10M-40 100 15402088 ns/op --- BENCH: BenchmarkCephCluster_Put/Put_big_pool_10M-40 cluster_test.go:71: oid: 0:402 size: 10485760 cluster_test.go:71: oid: 0:403 size: 10485760 cluster_test.go:71: oid: 0:404 size: 10485760 cluster_test.go:71: oid: 0:405 size: 10485760 cluster_test.go:71: oid: 0:406 size: 10485760 cluster_test.go:71: oid: 0:407 size: 10485760 cluster_test.go:71: oid: 0:408 size: 10485760 cluster_test.go:71: oid: 0:409 size: 10485760 cluster_test.go:71: oid: 0:410 size: 10485760 cluster_test.go:71: oid: 0:411 size: 10485760 ... [output truncated] BenchmarkCephCluster_Put/Put_big_pool_30M-40 50 28498774 ns/op --- BENCH: BenchmarkCephCluster_Put/Put_big_pool_30M-40 cluster_test.go:81: oid: 0:503 size: 31457280 cluster_test.go:81: oid: 0:504 size: 31457280 cluster_test.go:81: oid: 0:505 size: 31457280 cluster_test.go:81: oid: 0:506 size: 31457280 cluster_test.go:81: oid: 0:507 size: 31457280 cluster_test.go:81: oid: 0:508 size: 31457280 cluster_test.go:81: oid: 0:509 size: 31457280 cluster_test.go:81: oid: 0:510 size: 31457280 cluster_test.go:81: oid: 0:511 size: 31457280 cluster_test.go:81: oid: 0:512 size: 31457280 ... [output truncated] BenchmarkCephCluster_Put/Put_big_pool_100M-40 20 65160821 ns/op --- BENCH: BenchmarkCephCluster_Put/Put_big_pool_100M-40 cluster_test.go:91: oid: 0:554 size: 104857600 cluster_test.go:91: oid: 0:555 size: 104857600 cluster_test.go:91: oid: 0:556 size: 104857600 cluster_test.go:91: oid: 0:557 size: 104857600 cluster_test.go:91: oid: 0:558 size: 104857600 cluster_test.go:91: oid: 0:559 size: 104857600 cluster_test.go:91: oid: 0:560 size: 104857600 cluster_test.go:91: oid: 0:561 size: 104857600 cluster_test.go:91: oid: 0:562 size: 104857600 cluster_test.go:91: oid: 0:563 size: 104857600 ... [output truncated] PASS ok github.com/journeymidnight/yig/ceph 6.909s
Example output: