javaperformancejettywiremock

WireMock Performance and Load Testing


Is there any way to make WireMock Standalone faster? I have 1kb response file that I want to get back between 3ms - 10ms Currently the response is coming back within 20ms - 40ms

This is for an individual request/response from SoapUI, so it also needs to scale under load, although I believe this can be accommodated using the command line switches/Jetty parameters

Machine is 2x2.8 GHz (64 bit) / 32GB Ram


Solution

  • You might find that putting the response bodies directly into the stub mappings works better (which you can do as base64 if they're binary).

    Currently WireMock reads body files from the filesystem each time they're served, so you're probably taking a hit on I/O latency. When they're part of the mapping they're held in memory.

    Another alternative if you have the option would be to mount the __files directory on faster storage e.g. a ramdisk.