Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
winitzki committed Jul 12, 2024
1 parent f112af8 commit aa079a7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit aa079a7

Please sign in to comment.