Public Repository

Last pushed: 6 months ago
Short Description
Benchmark a container spec with the swrap lib of golang.
Full Description

Run

  • docker run

Result

BenchmarkNew-2          2000000000               0.34 ns/op            0 B/op          0 allocs/op
BenchmarkMake-2         2000000000               1.31 ns/op            0 B/op          0 allocs/op
BenchmarkBytes-2        2000000000               0.33 ns/op            0 B/op          0 allocs/op
BenchmarkLen-2          2000000000               0.34 ns/op            0 B/op          0 allocs/op
BenchmarkAdd-2          20000000                81.7 ns/op            48 B/op          2 allocs/op
BenchmarkMerge-2        30000000                45.4 ns/op            16 B/op          1 allocs/op
BenchmarkDelete-2       30000000                38.0 ns/op            16 B/op          1 allocs/op
BenchmarkCompare-2      100000000               10.7 ns/op             0 B/op          0 allocs/op
BenchmarkPush-2         20000000                74.1 ns/op            48 B/op          2 allocs/op
BenchmarkPop-2          50000000                33.4 ns/op            16 B/op          1 allocs/op
BenchmarkShift-2        30000000                43.1 ns/op            16 B/op          1 allocs/op
BenchmarkUnShift-2      30000000                43.8 ns/op            16 B/op          1 allocs/op
BenchmarkReplace-2      20000000               132 ns/op             128 B/op          2 allocs/op
PASS
ok      _/go/swrap      19.675s

Dockerfile

FROM golang:1.8

RUN git clone https://github.com/Jxck/swrap.git
WORKDIR /go/swrap
CMD ["go", "test", "-bench", ".", "-benchmem"]
Docker Pull Command
Owner
kakakikikeke

Comments (0)