From: Jérémie Astor Date: Thu, 23 Jul 2020 10:11:04 +0000 (+0200) Subject: :art: Update benchmark X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ca823049af38cfc7b3f491344e4ca44deedfd4e4;p=gwion.git :art: Update benchmark --- diff --git a/benchmark/binary-trees.gw b/benchmark/binary-trees.gw index d92c5e0e..94e993c3 100644 --- a/benchmark/binary-trees.gw +++ b/benchmark/binary-trees.gw @@ -10,8 +10,8 @@ class Tree { if (depth > 0) { it + it => int item2; --depth; - Tree.new_Tree(item2 - 1, depth) @=> t.left; - Tree.new_Tree(item2, depth) @=> t.right; + new_Tree(item2 - 1, depth) @=> t.left; + new_Tree(item2, depth) @=> t.right; } return t; } diff --git a/benchmark/string-equals.ck b/benchmark/string-equals.ck index 3a817d00..8751efe5 100644 --- a/benchmark/string-equals.ck +++ b/benchmark/string-equals.ck @@ -9,7 +9,6 @@ for (int i; i < 1000000; ++i) { if ("" == "abc") ++count; if ("abc" == "abcd") ++count; if ("changed one character" == "changed !ne character") ++count; -// if ("123" == 123) ++count if ("a slightly longer string" == "a slightly longer string!") ++count; if ("a slightly longer string" == diff --git a/benchmark/string-equals.gw b/benchmark/string-equals.gw index 6b197e1e..8751efe5 100644 --- a/benchmark/string-equals.gw +++ b/benchmark/string-equals.gw @@ -9,7 +9,6 @@ for (int i; i < 1000000; ++i) { if ("" == "abc") ++count; if ("abc" == "abcd") ++count; if ("changed one character" == "changed !ne character") ++count; - if (`${123}` == "123") ++count; if ("a slightly longer string" == "a slightly longer string!") ++count; if ("a slightly longer string" == diff --git a/benchmark/string-equals.py b/benchmark/string-equals.py index 7f1e23db..4be9eb1f 100644 --- a/benchmark/string-equals.py +++ b/benchmark/string-equals.py @@ -17,7 +17,6 @@ for i in range(0, 1000000): count = count + 1 if "changed one character" == "changed !ne character": count = count + 1 - if "123" == 123: count = count + 1 if "a slightly longer string" == \ "a slightly longer string!": count = count + 1 diff --git a/benchmark/string-equals.wren b/benchmark/string-equals.wren index 9bdcbdfc..96d7dbf6 100644 --- a/benchmark/string-equals.wren +++ b/benchmark/string-equals.wren @@ -9,7 +9,6 @@ for (i in 1..1000000) { if ("" == "abc") count = count + 1 if ("abc" == "abcd") count = count + 1 if ("changed one character" == "changed !ne character") count = count + 1 - if ("123" == 123) count = count + 1 if ("a slightly longer string" == "a slightly longer string!") count = count + 1 if ("a slightly longer string" ==