Code Monkey home page Code Monkey logo

serialization-benchmark-rs's Introduction

Serialization-benchmark-rs

CI

Benchmark for serialization in Rust, apache/horaedb#1515.

Usage

[]# serialization-benchmark-rs --help
Usage: serialization-benchmark-rs [OPTIONS]

Options:
      --batch-size <BATCH_SIZE>  [env: BATCH_SIZE=] [default: 1000000]
      --unsafe                   use unsafe feature within flatbuffer [env: UNSAFE=]
  -h, --help                     Print help
  -V, --version                  Print version


[]# ./serialization-benchmark-rs
Benchmark test, batch_size=1000000, result:

+------------+----------------+------------------+-------------+
| name       | serialize time | deserialize time | cpu_utility |
| flatbuffer | 0.049742587(s) | 0.2990468(s)     | 27.905426   |
| fury       | 0.4078921(s)   | 0.31441632(s)    | 26.46583    |
| protobuf   | 0.22009465(s)  | 0.3065254(s)     | 28.004875   |
+------------+----------------+------------------+-------------+

[]# ./serialization-benchmark-rs --batch-size 5000000
Benchmark test, batch_size=5000000, result:

+------------+----------------+------------------+-------------+
| name       | serialize time | deserialize time | cpu_utility |
| flatbuffer | 0.21562137(s)  | 1.4061759(s)     | 29.822226   |
| fury       | 2.0300736(s)   | 1.6155167(s)     | 25.778494   |
| protobuf   | 1.065279(s)    | 1.5093864(s)     | 25.547447   |
+------------+----------------+------------------+-------------+

[]# ./serialization-benchmark-rs --enable-unsafe
Benchmark test, batch_size=1000000, result:

+------------+----------------+------------------+-------------+
| name       | serialize time | deserialize time | cpu_utility |
| flatbuffer | 0.055235952(s) | 0.02805682(s)    | 29.246042   |
| fury       | 0.4071525(s)   | 0.31315032(s)    | 26.696833   |
| protobuf   | 0.216035(s)    | 0.30267346(s)    | 25.301205   |
+------------+----------------+------------------+-------------+

Related projects

serialization-benchmark-rs's People

Contributors

zealchen avatar jiacai2050 avatar

Watchers

 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.