Skip to content

Is discord.js faster than discord.py? #8992

Closed Answered by kyranet
MehulKhanna asked this question in Q&A
Discussion options

You must be logged in to vote

This is a bit like comparing apples to oranges, let me explain.

  • discord.js is written in JavaScript and is officially supported on Node.js, although we have done some efforts to try to support Deno.
  • discord.py is written in Python and is officially supported on... Python runtimes.

They are two libraries written in different languages running in different runtimes, each one has their pros and their cons, and while JavaScript on Node.js is arguably very performant for a dynamic untyped language, Python's performance varies a lot from runtime to runtime (CPython, Cython...). Also, the libraries they use also contribute a lot to their performance, for example we recently switched from node-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jiralite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants