[njs] Removed leftover String.prototype.toBytes() from benchmark test.

Dmitry Volyntsev xeioex at nginx.com
Sat May 20 04:31:07 UTC 2023


details:   https://hg.nginx.org/njs/rev/e7aedbc18246
branches:  
changeset: 2128:e7aedbc18246
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri May 19 21:29:23 2023 -0700
description:
Removed leftover String.prototype.toBytes() from benchmark test.

The String.prototype.toBytes() and friends were removed in
4df790f42ce7.

diffstat:

 src/test/njs_benchmark.c |  11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diffs (21 lines):

diff -r 9b4d3514d68d -r e7aedbc18246 src/test/njs_benchmark.c
--- a/src/test/njs_benchmark.c	Fri May 19 20:22:16 2023 -0700
+++ b/src/test/njs_benchmark.c	Fri May 19 21:29:23 2023 -0700
@@ -259,17 +259,6 @@ static njs_benchmark_test_t  njs_test[] 
       njs_str("3524578"),
       1 },
 
-    { "fibobench byte strings",
-      njs_str("var a = '\\x80'.toBytes();"
-              "function fibo(n) {"
-              "    if (n > 1)"
-              "        return fibo(n - 1) + fibo(n - 2);"
-              "    return 'a'"
-              "}"
-              "fibo(32).length"),
-      njs_str("3524578"),
-      1 },
-
     { "fibobench utf8 strings",
       njs_str("function fibo(n) {"
               "    if (n > 1)"


More information about the nginx-devel mailing list