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
title: "Automated performance testing for GraphQL Java"
3
+
authors: andi
4
+
slug: performance
5
+
---
6
+
7
+
GraphQL Java has become a mature and widely adopted library over the past 9.5 years.
8
+
And while we continue to maintain, improve and add features, we don't expect revolutionary changes to the core of the library.
9
+
10
+
As side effect of this maturity it became clear over the least years, that performance is a key aspect that users are interested in.
11
+
Especially in larger scale applications performance can have a huge impact on operational costs and user experience.
12
+
13
+
In GraphQL Java we leverage [JMH aka Java Microbenchmark Harness](https://github.com/openjdk/jmh) to measure and compare different performance aspects.
14
+
15
+
Historically, performance testing was done manually by running JMH benchmarks on a local machine.
16
+
17
+
This comes with the obvious flaw that it's not reproducible over time and across different machines. A benchmark run on one developer's machine is not
18
+
comparable to a run on another developer's machine (or often even the same machine months later).
19
+
20
+
We are very happy to share that we have now an automated performance testing setup in place to overcome these limitations by running
21
+
the benchmarks in an isolated cloud environment.
22
+
23
+
Currently, it runs on every commit to the `master` branch and the results are stored in the
0 commit comments