From aa079a765b6fd27d709de432fac0de810bd87ead Mon Sep 17 00:00:00 2001 From: Sergei Winitzki Date: Fri, 12 Jul 2024 13:11:21 +0200 Subject: [PATCH] reformat --- .../test/scala/io/chymyst/fastparse/unit/MemoizeTest.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fastparse-memoize/src/test/scala/io/chymyst/fastparse/unit/MemoizeTest.scala b/fastparse-memoize/src/test/scala/io/chymyst/fastparse/unit/MemoizeTest.scala index 22bc47d8..c464ea8c 100644 --- a/fastparse-memoize/src/test/scala/io/chymyst/fastparse/unit/MemoizeTest.scala +++ b/fastparse-memoize/src/test/scala/io/chymyst/fastparse/unit/MemoizeTest.scala @@ -103,9 +103,7 @@ class MemoizeTest extends FunSuite with TestTimings { assert(Memoize.parse("123*1-1", program2(_)).get.value == 122) assert(Memoize.parse("123*(1-1)", program2(_)).get.value == 0) - println( - s"before memoization: ${elapsed1 / 1e9}, after memoization: ${elapsed2 / 1e9}, speedup: ${elapsed1 / elapsed2}x" - ) + println(s"before memoization: ${elapsed1 / 1e9}, after memoization: ${elapsed2 / 1e9}, speedup: ${elapsed1 / elapsed2}x") // Memoization should speed up at least 200 times in this example, after JVM warmup. expect(elapsed1 > elapsed2 * 200) }