void () { String testStarted = ServiceMessageBuilder.testStarted("myTest").toString() + "\n"; mySplitter = new OutputEventSplitter() { @Override public void onTextAvailable(@NotNull String text, @NotNull Key<?> outputType) { } }; PlatformTestUtil.startPerformanceTest("print newlines with backspace", 5000, () -> { for (int i = 0; i < 2_000_000; i++) { mySplitter.process("some string without slash n appending in raw, attempt: " + i + "; ", ProcessOutputTypes.STDOUT); mySplitter.process(testStarted, ProcessOutputTypes.STDOUT); } }).assertTiming(); }