Giter VIP home page Giter VIP logo

node-graphql-benchmarks's Introduction

TL;DR

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

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.04s connections: 5 pipelining: 1

Server Requests/s Latency Throughput/Mb
core-graphql-jit-str 5973.2 0.30 36.93
core-graphql-jit-buf 5858.8 0.30 36.23
uWebSockets-graphql+jit 5727.6 0.30 35.20
core-graphql-jit-buf-fjs 5679.6 0.30 35.13
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
express-gql 3600.2 0.86 22.65
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
yoga-graphql 888.2 5.16 5.57
apollo-server-express-tracing 736.8 6.26 23.46
yoga-graphql-trace 609.6 7.69 19.39
express-graphql-dd-trace-less 576.4 8.16 3.63
express-graphql-dd-trace 529.6 8.95 3.33

node-graphql-benchmarks's People

Contributors

aboutlo avatar aichholzer avatar ardalanamini avatar benawad avatar cagataycali avatar delvedor avatar dotcypress avatar dougwilson avatar evheniy avatar fundon avatar hekike avatar hnry avatar hueniverse avatar jameskyburz avatar jaydenseric avatar joshuawise avatar kripod avatar leizongmin avatar lependu avatar lukeed avatar martinjlowm avatar mattkrick avatar mcollina avatar mhajder avatar ngshiheng avatar sinchang avatar

Stargazers

 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.