SpectoLabs / hoverfly

Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
https://hoverfly.io
Apache License 2.0
2.36k stars 208 forks source link

https request very slowly #1140

Closed arslantopcu1 closed 3 months ago

arslantopcu1 commented 4 months ago

I am using hey/Jmeter to perform load testing on HTTPS site. HTTP request very fast but when I play script HTTPS Request is working very slow. It take long time to initiate and complete each request as shown below in image.

Hoverfly is running simulate mode.

hey -n 50 -c 50 -x http://localhost:8500 https://api.restful-api.dev/objects

image

hey -n 50 -c 50 -x http://localhost:8500 http://api.restful-api.dev/objects

image
tommysitu commented 3 months ago

It's likely that the goproxy library is not caching the TLS connection... You can try using hoverfly as a webserver to help you with simulating loads for the time being.