#!/usr/bin/env bash # Quantifies what component scanning costs, by adding classes to the scanned package # and changing nothing else. # # baseline : the application as committed # +5000 plain : 5000 classes with no annotations -- pure scan cost # +5000 @Component : the same 5000, now bean definitions -- scan + define + instantiate # +5000 @Component, lazy : lazy init removes the instantiation, not the scan # # Each variant is a full rebuild. Budget about ten minutes. set -uo pipefail source "$(dirname "$0")/env.sh" cd "$ROOT" RUNS="${RUNS:-3}" measure() { # measure