Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Created May 20, 2015 05:41
Show Gist options
  • Save bprashanth/18f2e01d292ee91e17de to your computer and use it in GitHub Desktop.
Save bprashanth/18f2e01d292ee91e17de to your computer and use it in GitHub Desktop.
List benchmark
$ for i in 100 500 1000 2000 3000; do go test -bench . -tags 'benchmark' -bench-quiet 0 -bench-pods $i -bench-tasks 1; done
PASS
BenchmarkPodList 10 368965428 ns/op
BenchmarkPodListEtcd 5 261358598 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 11.485s
PASS
BenchmarkPodList 2 897347348 ns/op
BenchmarkPodListEtcd 3 353455914 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 10.775s
PASS
BenchmarkPodList 2 1471320298 ns/op
BenchmarkPodListEtcd 3 450392260 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 21.703s
PASS
BenchmarkPodList 1 1780231686 ns/op
BenchmarkPodListEtcd 2 563999082 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 20.883s
PASS
BenchmarkPodList 1 2730862324 ns/op
BenchmarkPodListEtcd 2 683227239 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 29.258s
$ for i in 10 30 50 70 100; do go test -bench . -tags 'benchmark' -bench-quiet 0 -bench-pods 3000 -bench-tasks $i; done
PASS
BenchmarkPodList 1 2934161994 ns/op
BenchmarkPodListEtcd 1 1707447060 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 24.768s
PASS
BenchmarkPodList 1 6280156977 ns/op
BenchmarkPodListEtcd 1 2919214980 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 33.895s
PASS
BenchmarkPodList 1 8595303338 ns/op
BenchmarkPodListEtcd 1 4444809774 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 43.777s
PASS
BenchmarkPodList 1 11760525560 ns/op
BenchmarkPodListEtcd 1 6048166821 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 53.215s
PASS
BenchmarkPodList 1 17141530100 ns/op
BenchmarkPodListEtcd 1 8255072587 ns/op
ok github.com/GoogleCloudPlatform/kubernetes/test/integration 67.362s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment