Skip to content

Instantly share code, notes, and snippets.

View sroughley's full-sized avatar

Steve Roughley sroughley

  • Cambridge, UK
  • 11:32 (UTC +01:00)
View GitHub Profile
#!/bin/sh
SERVICES=$(echo "$DEPENDENCIES" | tr "|" "\n")
resolve()
{
for SERVICE in $SERVICES; do
ip=$(nslookup "$SERVICE" | awk '/^Address: / { print $2 }')
@msievers
msievers / [Spring, JMH] Howto integrate JMH benchmarks with Spring.md
Last active February 24, 2025 04:23
[Spring, JMH] Howto integrate JMH benchmarks with Spring

Motivation

Integrate JMH (Java Microbenchmarking Harness) with Spring (Boot) and make developing and running benchmarks as easy and convinent as writing tests.

Idea

Wrap the necessary JMH boilerplate code within JUnit to benefit from all the existing test infrastructure Spring (Boot) provides. It should be as easy and convinent to write benchmarks as it is to write tests.

TL;DR;