GithubHelp home page GithubHelp logo

cfzjywxk / buffer-benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kcchu/buffer-benchmarks

0.0 0.0 0.0 75 KB

Benchmarking Protobuf, FlatBuffers, and Cap'n Proto on Go and Rust

License: Apache License 2.0

Go 11.54% Rust 86.65% Makefile 0.18% Cap'n Proto 1.08% Dockerfile 0.55%

buffer-benchmarks's Introduction

Serialization Formats Benchmarks

This repository contains benchmarking code for different serialization formats across programing languages.

Sample data came from Farcaster.

Tested

Serialization Formats

Programming Languages

  • Go
  • Rust

Results

Note Smaller is better

Go (17 Jan 2023)

Test Protobuf Protobuf (gogofaster) FlatBuffers Capnp Capnp (packed)
Encode (ns/op) 883.8 384.4 856.8 1709 2591
Decode (ns/op) 1179 496.2 18.89 830.8 1716
Wire format size (bytes) 299 299 432 440 344
Wire format size, gzipped (bytes) 323 323 406 392 368

Rust (20 Jan 2023)

Test Protobuf (rust-protobuf) Protobuf (prost) FlatBuffers
Encode (ns/op) 704.88 642.90 878.02
Decode (ns/op) 751.61 1058.7 331.12
Wire format size (bytes) 299 299 428

buffer-benchmarks's People

Contributors

kcchu avatar cfzjywxk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.