This directory contains protobuf benchmarks adapted from original protobuf library.
These benchmarks cover parsing and serializing protobufs both to binary and JSON formats, and hash code generation for messages.
Before running benchmarks you first need to compile all involved protos, which requires installing protoc
and dart-protoc-plugin.
$ cd benchmarks $ ./compile-protos.sh # This would produce benchmarks/temp folder with output of protoc.
$ dart benchmarks/benchmark_vm.dart
$ benchmarks/compile-js.sh $ d8 $DART_SDK/lib/_internal/js_runtime/lib/preambles/d8.js benchmarks/temp/benchmark.js