Code Monkey home page Code Monkey logo

msgpack-py-vs-rs's Introduction

Compare Rust and Python when parsing msgpack

The purpose of this repository is to show the difference in runtime and memory consumption for an app that parse data from MsgPack files.

  • Python version is located here
  • Rust version is located here

According to the benchmarks, Rust implementation is 35 times faster than Python

OS Language Median, ms MAD, µs Average, ms SD, µs Average throughput, msg/s Average throughput, MBytes/s
Ubuntu 24.04 LTS on WSL2 Rust 1.78.0 (with snmalloc-rs) 2.1762 17.414 2.1765 15.965 4594532.50 245.12
Ubuntu 24.04 LTS on WSL2 CPython, 3.12.3 (64-bit), compiled with GCC 13.2.0 76.2 400 76.3 600 131233.59 7.00

Average throughput in MBytes/s calculated from average message size = 559439 bytes / 10000 messages = 55.9439 bytes/msg

msgpack-py-vs-rs's People

Contributors

reasy 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.