patch benchmark to ensure strings are flattened

Contributed-by: Santiago Pericas-Geertsen
This commit is contained in:
akhil 2014-04-30 15:52:23 -07:00
parent cf0a3a67c5
commit dbf0ae61b3
2 changed files with 13 additions and 0 deletions

View File

@ -370,6 +370,7 @@
<apply-diff src="test/simple" mod="${test.dir}/crypto" name="test-crypto-stream.js"/>
<!-- benchmark -->
<apply-diff src="benchmark" mod="${benchmark.dir}" name="common.js"/>
<apply-diff src="benchmark" mod="${benchmark.dir}" name="http_simple.js"/>
<!-- pummel -->
<apply-diff src="test/pummel" mod="${test.dir}/crypto" name="test-crypto-dh.js"/>
<apply-diff src="test/pummel" mod="${test.dir}/pummel" name="test-dh-regr.js"/>
@ -474,6 +475,7 @@
<apply-patch-file target="${test.dir}/crypto" dir="test/crypto" name="test-crypto-stream.js"/>
<!-- benchmark -->
<apply-patch-file target="${benchmark.dir}" dir="benchmark" name="common.js"/>
<apply-patch-file target="${benchmark.dir}" dir="benchmark" name="http_simple.js"/>
<!-- pummel -->
<apply-patch-file target="${test.dir}/pummel" dir="test/crypto" name="test-crypto-dh.js"/>
<apply-patch-file target="${test.dir}/pummel" dir="test/pummel" name="test-dh-regr.js"/>

View File

@ -0,0 +1,11 @@
--- /home/akhil/ws/node/benchmark/http_simple.js 2013-08-08 17:10:54.026705328 -0700
+++ /home/akhil/ws/avatar-js/benchmark/http_simple.js 2014-04-30 15:38:48.461377326 -0700
@@ -111,7 +111,7 @@
while (s.length < size) {
s += c;
}
- return s;
+ return s.toString(); // ensure nashorn cons strings are flattened
}
server.listen(port, function () {