commit | 8eba9eee0ba9c2f9e9d2685798c0d87379f23592 | [log] [tgz] |
---|---|---|
author | Herbie Ong <herbie@google.com> | Mon Apr 15 15:29:50 2019 -0700 |
committer | Herbie Ong <herbie@google.com> | Tue Apr 16 00:06:16 2019 +0000 |
tree | 4f4ba3841332a2238dd459b9762c5a8cce955026 | |
parent | a2dd22800409787c87c8f70b9ae5fb1c58e16470 [diff] |
encoding: add simple benchmarks to compare V1 vs V2 name old time/op new time/op delta TextEncode-4 7.70ms ± 2% 18.57ms ± 3% +141.06% (p=0.000 n=10+9) TextDecode-4 9.62ms ± 6% 252.85ms ±10% +2529.10% (p=0.000 n=10+10) JSONEncode-4 30.3ms ± 0% 10.7ms ± 7% -64.80% (p=0.000 n=9+9) JSONDecode-4 54.1ms ± 0% 880.1ms ± 3% +1526.65% (p=0.000 n=9+10) name old alloc/op new alloc/op delta TextEncode-4 3.98MB ± 0% 28.90MB ± 0% +626.36% (p=0.000 n=10+10) TextDecode-4 2.74MB ± 0% 1158.24MB ± 0% +42114.16% (p=0.000 n=10+8) JSONEncode-4 10.3MB ± 0% 3.9MB ± 0% -61.74% (p=0.000 n=10+9) JSONDecode-4 19.0MB ± 0% 3349.9MB ± 0% +17534.57% (p=0.000 n=10+10) name old allocs/op new allocs/op delta TextEncode-4 43.9k ± 0% 73.5k ± 0% +67.53% (p=0.000 n=10+10) TextDecode-4 56.2k ± 0% 277.1k ± 0% +393.31% (p=0.000 n=8+8) JSONEncode-4 465k ± 0% 64k ± 0% -86.30% (p=0.000 n=10+10) JSONDecode-4 289k ± 0% 247k ± 0% -14.58% (p=0.000 n=10+10) Change-Id: I593a52445b6356eec1488236d5f1f1a8c4b62cb3 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/172137 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.