Skip to content

dackland/gql-modules-performance-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Modules Performance Testing

Each folder v0, v1, and standalone (Apollo Server), have the same basic Movie module.

Running the servers

  1. Navigate to a server folder, eg. /v0/.
  2. Run yarn, and yarn start.

Installing k6

The performance script uses a load testing tool, k6, which needs to be installed via the instructions here. Or simply brew install k6 if on a mac.

Running the performance script

yarn test:performance

Performance Test Results

The k6 script performs as many requests as possible against the running server within 10 seconds.

Server Median Request Duration Request Count
Apollo Standalone 236ms 42
GQL Modules v0 229ms 43
GQL Modules v1 460ms 22

Tests were run using node version 16.3.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published