An Experimental performance benchmarking of REST and GraphQL APIs under controlled workload conditions

dc.contributor.authorSirewu, Andy T.
dc.date.accessioned2026-10-20T14:28:11Z
dc.date.issued2026-06
dc.description.abstractThis research evaluates the performance trade-offs between REST and GraphQL APIs under controlled workloads up to 1000 concurrent Virtual Users (VUs). While GraphQL’s client-side declarative fetching successfully solves network "over-fetching" and "under-fetching" by delivering a 52.6% reduction in network payload sizes (27.0 MB vs. 57.0 MB in REST), it introduces a significant server-side processing penalty. Containerized benchmarking experiments using the k6 engine on fixed, non-elastic Ubuntu infrastructure revealed that GraphQL incurs a 170.4% increase in average response latency (31.26 ms) compared to REST (11.56 ms). Furthermore, under peak saturation, GraphQL's tail latency degraded sharply to a p95 of 126.96 ms compared to REST's highly stable 82.31 ms, indicating performance instability caused by runtime Abstract Syntax Tree (AST) parsing and resolver tree execution. Therefore, REST remains the superior choice for high-speed enterprise systems requiring low CPU overhead and predictable tail latencies. Conversely, GraphQL is strongly recommended for bandwidth-constrained, resource expensive environments such as remote edge installations or cellular IoT networks where minimizing data transmission volume outweighs localized server processing penalties.
dc.identifier.urihttps://ir.buse.ac.zw/handle/123456789/1003
dc.language.isoen
dc.publisherBUSE
dc.subjectREST API
dc.subjectGraphQL
dc.subjectPerformance evaluation
dc.subjectApplication programming interfaces
dc.subjectResponse latency
dc.subjectNetwork payload optimization
dc.subjectVirtual users (VUs).
dc.titleAn Experimental performance benchmarking of REST and GraphQL APIs under controlled workload conditions
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Sirewu, Andy T..pdf
Size:
1.68 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed to upon submission
Description: