You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add perf tests to validate subscription performance (#514)
* Add perf tests to validate subscription performance
Add a simple perf test runner, https://artillery.io/. This allows us to easily run the perf tests and debug the server in the same project
* Update README
Copy file name to clipboardExpand all lines: graphql-kotlin-spring-server/src/main/kotlin/com/expediagroup/graphql/spring/execution/ApolloSubscriptionProtocolHandler.kt
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ class ApolloSubscriptionProtocolHandler(
This is a simple performance test script that runs using [Artillery](https://github.com/artilleryio/artillery)
4
+
5
+
## Local Setup
6
+
7
+
### Requirements
8
+
9
+
* Make sure you are using the correct version of [Node](https://nodejs.org/). You can use [NVM](https://github.com/nvm-sh/nvm) to install the version specified in `.nvmrc`
10
+
11
+
### Running Tests
12
+
13
+
* Install the dependencies locally to run the tests
14
+
15
+
```shell script
16
+
$ npm install
17
+
```
18
+
19
+
* There are multiple performance test cases. To see the availabel tests, run the following command.
20
+
```shell script
21
+
$ npm run
22
+
```
23
+
* To execute a test simply run the appropiate command through `npm`. Feel free to modify the config for the tests locally as well.
0 commit comments