Shelnutt2 / go-benchmark-ParseDuration

Benchmarks for testing ParseDuration vs ParseDurationBytes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benchmarks

This repository contains basic benchmarks for time.ParseDuration vs the proposed time.ParseDurationBytes.

There is an optional benchmark for testing time.Duration marhsal support proposed in cl24473

There are two version of the BenchmarkParseDurationByteInput benchmark, one for benchmarking master and the other for benchmarking cl24842

Running Benchmarks

go get github.com/Shelnutt2/go-benchmark-ParseDuration
cd $GOPATH/src/github.com/Shelnutt2/go-benchmark-ParseDuration
go test -bench=BenchmarkParseDuration

About

Benchmarks for testing ParseDuration vs ParseDurationBytes

License:Apache License 2.0


Languages

Language:Go 100.0%