Coder Social home page Coder Social logo

lbs's Introduction

A prototype library benchmarker for Python Discord Libraries

Please note, this project is in its infancy, and should not be relied on as a comparison tool yet

Output

import:: Testing import times for 500 iterations

Library Total Time(ms) Average Time(µs) Difference
discord.py[commands] 212.37ms 424.731µs 101.82%
hata DNF DNF DNF
hikari 205.32ms 410.641µs 95.13%
🎉interactions.py 105.22ms 210.448µs 0.00%
NAFF[perf] 360.36ms 720.719µs 242.47%

init:: Testing init times for 500 iterations

Library Total Time(ms) Average Time(µs) Difference
discord.py[commands] 128.20ms 256.399µs 1016.69%
🎉hata 11.48ms 22.961µs 0.00%
hikari 2818.36ms 5636.727µs 24449.56%
interactions.py 167.23ms 334.459µs 1356.66%
NAFF[perf] 90.18ms 180.358µs 685.51%

message:: Testing message deserialization times for 500 iterations

Library Total Time(ms) Average Time(µs) Difference
discord.py[commands] 5.72ms 11.435µs 40.95%
hata 5.01ms 10.026µs 23.57%
🎉hikari 4.06ms 8.113µs 0.00%
interactions.py 14.58ms 29.165µs 259.48%
NAFF[perf] 9.47ms 18.949µs 133.56%

message_hard:: Testing message deserialization times for 500 iterations

Library Total Time(ms) Average Time(µs) Difference
🎉discord.py[commands] 28.45ms 56.904µs 0.00%
hata 48.33ms 96.654µs 69.86%
hikari 50.51ms 101.028µs 77.54%
interactions.py 675.40ms 1350.801µs 2273.83%
NAFF[perf] 154.65ms 309.301µs 443.55%

guild:: Testing guild deserialization times for 500 iterations

Library Total Time(ms) Average Time(µs) Difference
discord.py[commands] 29.99ms 59.983µs 22.81%
hata DNF DNF DNF
hikari 45.07ms 90.132µs 84.54%
interactions.py 142.49ms 284.971µs 483.47%
🎉NAFF[perf] 24.42ms 48.841µs 0.00%

lbs's People

Contributors

lordofpolls avatar

Stargazers

 avatar  avatar  avatar

Watchers

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