From 71b1be5e5a1a99326a8a2b718dcfbc8ff2105301 Mon Sep 17 00:00:00 2001 From: Jaroslav Tulach Date: Mon, 11 Sep 2023 08:58:55 +0200 Subject: [PATCH] Benchmark shall loop correctly --- .../bench/benchmarks/semantic/ListBenchmarks.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/runtime/src/bench/java/org/enso/interpreter/bench/benchmarks/semantic/ListBenchmarks.java b/engine/runtime/src/bench/java/org/enso/interpreter/bench/benchmarks/semantic/ListBenchmarks.java index 54f46b2c4f6a..fafc5f5b8817 100644 --- a/engine/runtime/src/bench/java/org/enso/interpreter/bench/benchmarks/semantic/ListBenchmarks.java +++ b/engine/runtime/src/bench/java/org/enso/interpreter/bench/benchmarks/semantic/ListBenchmarks.java @@ -104,17 +104,17 @@ sum_conv list (acc:V) = sum_any list (acc:Any) = case list of Nil -> acc - Cons x xs -> @Tail_Call sum xs acc+x + Cons x xs -> @Tail_Call sum_any xs acc+x sum_int list (acc:Integer) = case list of Nil -> acc - Cons x xs -> @Tail_Call sum xs acc+x + Cons x xs -> @Tail_Call sum_int xs acc+x sum_multi list (acc:Text|Decimal|Integer|Any) = case list of Nil -> acc - Cons x xs -> @Tail_Call sum xs acc+x + Cons x xs -> @Tail_Call sum_multi xs acc+x generator n = go x v l = if x > n then l else