Skip to content

Conversation

@Delawen
Copy link
Contributor

@Delawen Delawen commented Dec 26, 2025

Using https://github.com/ionutbalosin/jvm-performance-benchmarks/

This PR also removes the hardcoded url on the drivers and includes a urls.txt file on the test suites that are used to run the oha tests instead. That urls.txt contains relative urls, so the driver can add the hostname (and protocol) to those urls.

OHA uses a random strategy to choose which url from the file to request. In the case of the sqpc tests, the urls.txt file only contains one url (/fruits), so all requests go there, as when the url was hardcoded.

This also allows other future drivers to use that file instead of hardcoding urls.

The new benchmark test is still a bit dumb (only uses a couple of simple benchmarks) and makes use of different urls on the urls.txt file to simulate a more "realistic" test (still doubting if this is a good idea, but we can simplify the urls.txt later, or even create different strategies to use different urls).

Also added a timeout of 10s to oha driver, because when testing weird stuff, it got stuck forever waiting for a response that would never arrive. This is a test code problem, but we don't want to get hung out forever anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant