ChimeraCoder / gitgo

A Go implementation of Git functions
Other
346 stars 25 forks source link

Add benchmarks for CatFile, parseObject, and VerifyPack #8

Closed ChimeraCoder closed 7 years ago

ChimeraCoder commented 7 years ago

On my machine:

$ goimports -w . && go test -bench Bench
BenchmarkParseBlob-4                 100          13841212 ns/op
BenchmarkParseObject-4            200000             10431 ns/op
BenchmarkVerifyPack-4               5000            359270 ns/op
PASS
ok      github.com/ChimeraCoder/gitgo   5.491s