From c9456136e5b3f3745e2314318fdef4a06b45a5ae Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Mon, 4 Apr 2022 16:18:32 +0200 Subject: [PATCH] reorder string-concat test --- encoding.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding.test.js b/encoding.test.js index c5501c4..8afb6ac 100644 --- a/encoding.test.js +++ b/encoding.test.js @@ -190,8 +190,8 @@ export const testStringDecodingPerformance = () => { } }) }) + t.assert(durationConcatElements < durationConcatElementsNative * 1.3, '1.3x faster. We expect that the native approach is slower. If this fails, our expectantion is not met in your javascript environment. Please report this issue.') t.assert(durationConcatElements < durationSingleElements, 'We expect that the second approach is faster. If this fails, our expectantion is not met in your javascript environment. Please report this issue.') - t.assert(durationConcatElements < durationConcatElementsNative * 1.3, 'We expect that the native approach is slower. If this fails, our expectantion is not met in your javascript environment. Please report this issue.') } /**