Skip to content

Instantly share code, notes, and snippets.

@zero734kr
Last active May 11, 2021 15:53
Show Gist options
  • Save zero734kr/49304e0094d440ccf929db64e78c3fb0 to your computer and use it in GitHub Desktop.
Save zero734kr/49304e0094d440ccf929db64e78c3fb0 to your computer and use it in GitHub Desktop.
Web/HTTP Frameworks in Node.js, Python and Deno Benchmark

Test Environment:

Executed command: hey -cpus 12 -c 100 -n 10000000 http://localhost:4500

  • CPU: AMD Ryzen 5600X (6 Cores 12 Threads)
  • OS: Linux Mint 20.1
  • Query Response: Hello World
  • Number of threads for parallel request: 12
  • Request Concurrency: 100
  • Total number of requests: 10000000

Benchmarks

  • Deno 1.9.2

    • ⚠️ Native Hyper HTTP Engine - 76938.6741 requests/sec
    • Oak 7.4.0 - 26879.9494 requests/sec
    • Drash 1.4.4 - 28014.4902 requests/sec
    • Opine 1.3.4 - 8234.4397 requests/sec
    • Native Standard HTTP Engine - 36245.7806 requests/sec\
  • Node.js 14.16.1

    • Express 4.17.1 - 14164.5966 requests/sec
    • Fastify 3.15.1 - 51429.4860 requests/sec
    • ⚠️ uWebSockets.js 18.14.0 - 205208.5273 requests/sec
    • koa 2.13.1 - 44110.3196 requests/sec-
    • Next.js 10.2.0 Serverless - 10795.5252 requests/sec
    • Native HTTP Engine - 65215.4092 requests/sec
  • Python 3.8.5

    • Sanic 21.3.2 (1 Worker only) - 12817.2834 requests/sec
    • Sanic 21.3.2 (12 Workers) - 129827.9416 requests/sec

⚠️ Not recommended for production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment