From ca823049af38cfc7b3f491344e4ca44deedfd4e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 23 Jul 2020 12:11:04 +0200 Subject: [PATCH] :art: Update benchmark --- benchmark/binary-trees.gw | 4 ++-- benchmark/string-equals.ck | 1 - benchmark/string-equals.gw | 1 - benchmark/string-equals.py | 1 - benchmark/string-equals.wren | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) 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" == -- 2.43.0