void () { ImmutableText original = ImmutableText.valueOf(StringUtil.repeat("abcdefghij", 1_900_000)); PlatformTestUtil.startPerformanceTest("Deletion of all contents must be fast", 100, () -> { for (int iter = 0; iter < 100000; iter++) { ImmutableText another = original.delete(0, original.length()); assertEquals(0, another.length()); assertEquals("", another.toString()); } }).assertTiming(); }