GithubHelp home page GithubHelp logo

jeffreyflores / node-graphql-benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benawad/node-graphql-benchmarks

0.0 0.0 0.0 172 KB

Benchmarks for different Node.js GraphQL Servers

License: MIT License

JavaScript 91.69% TypeScript 8.31%

node-graphql-benchmarks's Introduction

TL;DR

  • graphql-jit helps
  • apollo-server adds overhead
  • tracing resolvers kills performance

Explanation

For further details, please check out this video.

Usage

git clone https://github.com/benawad/benchmarks
cd benchmarks
npm install
npm start

Benchmarks

duration: 5.05s connections: 5 pipelining: 1

Server Requests/s Latency Throughput/Mb
fastify-REST 5486.8 0.35 43.88
fastify-gql+graphql-jit 5437.2 0.34 33.87
express-REST 4278.2 0.53 34.49
graphql-api-koa+graphql-jit 2817.8 1.34 17.55
express-graphql+graphql-jit 2374.2 1.57 14.94
fastify-gql 2367.0 1.58 14.74
express-graphql+graphql-jit+type-graphql 2176.2 1.72 13.70
apollo-server-fastify+graphql-jit 1740.6 2.33 10.88
graphql-api-koa 1726.8 2.50 10.76
express-graphql 1564.0 2.79 9.84
apollo-schema+async 1555.8 2.79 9.79
express-graphql+type-graphql 1481.0 2.90 9.32
type-graphql+async 1455.8 2.93 9.16
type-graphql+middleware 1452.0 2.94 9.14
type-graphql+async-middleware 1409.4 3.01 8.87
apollo-server-fastify 1383.6 3.10 8.64
express-graphql-dd-trace-no-plugin 1311.0 3.28 8.25
apollo-server-express 1238.6 3.45 7.83
apollo-opentracing 913.8 4.92 5.78
apollo-server-express-tracing 736.8 6.26 23.46
express-graphql-dd-trace 606.0 7.76 3.81

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.