I was using my stress test with actuator to do some QA-ing of https://github.com/spring-projects/spring-framework/pull/30218 and found one more optimization. Java's TimSort (used in micrometer's Arrays.sort() operation) runs faster if the input is already sorted. i'll run over to micrometer to see if this can be relaxed since it seems to be sorting a whole bunch of times before finalizing it when it could be sorting once at the end, but that is another story.
before cpu:
after cpu (note how the Integer.toString got bigger (as a portion) since the sort got smaller. also see how ComparableTimSort.countRunAndMakeAscending is fully used to find that the input is monotonically ascending):