[njs] Removed irrelevant overhead in clone/destroy benchmark.

Igor Sysoev igor at sysoev.ru
Fri Nov 11 15:12:40 UTC 2016


details:   http://hg.nginx.org/njs/rev/91640c0405f4
branches:  
changeset: 253:91640c0405f4
user:      Igor Sysoev <igor at sysoev.ru>
date:      Fri Nov 11 18:12:13 2016 +0300
description:
Removed irrelevant overhead in clone/destroy benchmark.

diffstat:

 njs/test/njs_unit_test.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 9f66db825663 -r 91640c0405f4 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Fri Nov 11 17:28:47 2016 +0300
+++ b/njs/test/njs_unit_test.c	Fri Nov 11 18:12:13 2016 +0300
@@ -6198,8 +6198,8 @@ main(int argc, char **argv)
 {
     nxt_bool_t  disassemble;
 
-    static nxt_str_t  script = nxt_string("1");
-    static nxt_str_t  result = nxt_string("1");
+    static nxt_str_t  script = nxt_string("null");
+    static nxt_str_t  result = nxt_string("null");
 
     static nxt_str_t  fibo_number = nxt_string(
         "function fibo(n) {"



More information about the nginx-devel mailing list