{"id":13516327,"url":"https://github.com/benawad/node-graphql-benchmarks","last_synced_at":"2025-03-31T06:30:34.431Z","repository":{"id":39670643,"uuid":"231830382","full_name":"benawad/node-graphql-benchmarks","owner":"benawad","description":"Benchmarks for different Node.js GraphQL Servers","archived":false,"fork":true,"pushed_at":"2024-05-06T21:18:52.000Z","size":363,"stargazers_count":566,"open_issues_count":0,"forks_count":84,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-01T20:36:21.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fastify/benchmarks","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benawad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-04T21:23:45.000Z","updated_at":"2024-10-23T19:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/benawad/node-graphql-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fnode-graphql-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fnode-graphql-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fnode-graphql-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fnode-graphql-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benawad","download_url":"https://codeload.github.com/benawad/node-graphql-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429459,"owners_count":20775805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:21.369Z","updated_at":"2025-03-31T06:30:33.786Z","avatar_url":"https://github.com/benawad.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# TL;DR\n\n- graphql-jit helps\n- apollo-server adds overhead\n- tracing resolvers kills performance\n- type-graphql adds overhead\n\n# Explanation\n\nFor further details, please check out [this video](https://www.youtube.com/watch?v=JbV7MCeEPb8).\n\n# Usage\n\n```\ngit clone https://github.com/benawad/benchmarks\ncd benchmarks\nnpm install\nnpm start\n```\n\n# Benchmarks\nduration: 60.14s\nconnections: 100\npipelining: 5\n\n| Server                                                                                                                                                                                          | Requests/s | Latency | Throughput/Mb |\n| :--                                                                                                                                                                                             | --:        | :-:     | --:           |\n| [rust-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/rust-graphql.js)                                                                                       | 66804.8    | 7.00    | 391.47        |\n| [bun-yoga-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/bun-yoga-jit.js)                                                                                       | 13934.5    | 35.38   | 94.31         |\n| [go-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/go-graphql.js)                                                                                           | 13567.7    | 36.36   | 79.78         |\n| [uWebSockets-graphql+jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/uWebSockets-graphql+jit.js)                                                                 | 12364.5    | 39.93   | 83.33         |\n| [core-graphql-jit-str](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/core-graphql-jit-str.js)                                                                       | 9154.3     | 54.11   | 61.95         |\n| [core-graphql-jit-buf](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/core-graphql-jit-buf.js)                                                                       | 9120.5     | 54.31   | 61.73         |\n| [benzene-jit-http](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/benzene-jit-http.js)                                                                               | 8756.6     | 56.58   | 59.69         |\n| [apollo-schema+async](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-schema+async.js)                                                                         | 8589.9     | 57.69   | 2.38          |\n| [graphql-http+middleware](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+middleware.js)                                                                 | 8576.5     | 57.78   | 2.37          |\n| [graphql-http](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http.js)                                                                                       | 8567.2     | 57.85   | 2.37          |\n| [graphql-http+type-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+type-graphql.js)                                                             | 8566.9     | 57.84   | 2.37          |\n| [graphql-http+async-middleware](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+async-middleware.js)                                                     | 8429.6     | 58.80   | 2.33          |\n| [graphql-compose+async](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-compose+async.js)                                                                     | 8415.9     | 58.90   | 2.33          |\n| [graphql-http+graphql-jit+type-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+graphql-jit+type-graphql.js)                                     | 8415.1     | 58.90   | 2.33          |\n| [graphql-http+async](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+async.js)                                                                           | 8388.3     | 59.09   | 2.32          |\n| [graphql-http+graphql-jit+graphql-compose](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+graphql-jit+graphql-compose.js)                               | 8350.7     | 59.35   | 2.31          |\n| [core-graphql-jit-buf-fjs](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/core-graphql-jit-buf-fjs.js)                                                               | 8251.5     | 60.06   | 55.85         |\n| [fastify-REST](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/fastify-REST.js)                                                                                       | 8247.3     | 60.11   | 76.00         |\n| [graphql-http+graphql-compose](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+graphql-compose.js)                                                       | 8227.7     | 60.25   | 2.28          |\n| [graphql-http+graphql-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http+graphql-jit.js)                                                               | 8157.3     | 60.77   | 2.26          |\n| [bun-yoga](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/bun-yoga.js)                                                                                               | 8132.2     | 60.96   | 55.04         |\n| [graphql-http-dd-trace-no-plugin](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http-dd-trace-no-plugin.js)                                                 | 7920.7     | 62.60   | 2.19          |\n| [mercurius+graphql-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/mercurius+graphql-jit.js)                                                                     | 7624.2     | 65.06   | 51.95         |\n| [mercurius+graphql-jit+type-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/mercurius+graphql-jit+type-graphql.js)                                           | 6446.1     | 77.03   | 43.92         |\n| [graphql-http-dd-trace](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http-dd-trace.js)                                                                     | 5410.9     | 91.85   | 1.50          |\n| [graphql-http-dd-trace-less](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-http-dd-trace-less.js)                                                           | 5313.5     | 93.52   | 1.47          |\n| [express-REST](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/express-REST.js)                                                                                       | 4988.7     | 99.66   | 46.28         |\n| [benzene-http](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/benzene-http.js)                                                                                       | 4776.6     | 104.11  | 32.56         |\n| [mercurius+graphql-jit+otel-instrumentation](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/mercurius+graphql-jit+otel-instrumentation.js)                           | 4717.1     | 105.42  | 32.14         |\n| [mercurius+graphql-compose](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/mercurius+graphql-compose.js)                                                             | 4468.4     | 111.31  | 30.44         |\n| [mercurius](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/mercurius.js)                                                                                             | 4400.1     | 113.05  | 29.98         |\n| [graphql-api-koa+graphql-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-api-koa+graphql-jit.js)                                                         | 4223.8     | 117.78  | 28.75         |\n| [yoga-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/yoga-graphql.js)                                                                                       | 3815.7     | 130.43  | 25.99         |\n| [graphql-api-koa](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/graphql-api-koa.js)                                                                                 | 3046.7     | 163.43  | 20.73         |\n| [apollo-as-integrations-fastify+graphql-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-as-integrations-fastify+graphql-jit.js)                           | 2722.3     | 182.94  | 18.61         |\n| [apollo-as-integrations-fastify+graphql-jit+type-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-as-integrations-fastify+graphql-jit+type-graphql.js) | 2652.8     | 187.71  | 18.14         |\n| [apollo-as-integrations-fastify](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-as-integrations-fastify.js)                                                   | 2578.5     | 192.82  | 17.63         |\n| [apollo-as-koa-integrations+graphql-jit+type-graphql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-as-koa-integrations+graphql-jit+type-graphql.js)         | 2385.0     | 207.45  | 16.41         |\n| [apollo-server-express-tracing](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-server-express-tracing.js)                                                     | 2131.1     | 230.22  | 14.77         |\n| [apollo-server-express](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-server-express.js)                                                                     | 2116.2     | 231.06  | 14.67         |\n| [apollo-opentracing](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/apollo-opentracing.js)                                                                           | 0.0        | 0.00    | 0.00          |\n| [express-gql](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/express-gql.js)                                                                                         | 0.0        | 0.00    | 0.00          |\n| [fastify-express-graphql-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/fastify-express-graphql-jit.js)                                                         | 0.0        | 0.00    | 0.00          |\n| [fastify-express-graphql-typed-jit](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/fastify-express-graphql-typed-jit.js)                                             | 0.0        | 0.00    | 0.00          |\n| [fastify-express-grapql-typed](https://github.com/benawad/node-graphql-benchmarks/tree/master/benchmarks/fastify-express-grapql-typed.js)                                                       | 0.0        | 0.00    | 0.00          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fnode-graphql-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenawad%2Fnode-graphql-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fnode-graphql-benchmarks/lists"}