Skip to content

Instantly share code, notes, and snippets.

node benchmark/http_simple.js
ab -t 10 -c 100 http://127.0.0.1:8000/bytes/12 | grep Req
master
5733.53
5881.56
5887.85
v0.5.8
ab -t 10 -c 100 http://127.0.0.1:8000/bytes/12 against benchmark/http_simple.js OSX x64 build
v0.1.13 4792.77 req/sec
v0.2.6 4977.69
v0.4.12 5878.03
v0.5.9-pre 5912.16
syscall cmp
v0.4.10
accept(15, 140734799799376, 140734799799372) = 16 0
setsockopt(16, 65535, 4) = 0 0
fcntl(16, 4, 4) = 0 0
fcntl(16, 2, 1) = 0 0
accept(15, 140734799799376, 140734799799372) = -1 Err#35
From dea49e3d1900ffdc56a2077d1d701ec9e38bc58b Mon Sep 17 00:00:00 2001
From: Ryan Dahl <[email protected]>
Date: Wed, 28 Sep 2011 17:43:20 -0700
Subject: [PATCH] net: Fix string-concat hot path bug
Also removes functionality added in f9fec3a2d65580b7e39edc9afd5904cd4775c87c
because it changes API. (That patch shouldn't have been added anyway.)
---
lib/net.js | 20 ++++++++---
test/simple/test-net-write-callbacks.js | 56 +++++++++++++++++++++++++++++++
diff --git a/lib/net_uv.js b/lib/net_uv.js
index 0fcdce9..207a1f4 100644
--- a/lib/net_uv.js
+++ b/lib/net_uv.js
@@ -195,7 +195,7 @@ Socket.prototype.end = function(data, encoding) {
if (data) this.write(data, encoding);
DTRACE_NET_STREAM_END(this);
- if (this._flags & FLAG_GOT_EOF) {
+ if (!this.readable) {
From bf8c62eb36b525ea5d68278b59d007836604311a Mon Sep 17 00:00:00 2001
From: Ryan Dahl <[email protected]>
Date: Mon, 26 Sep 2011 20:39:24 -0700
Subject: [PATCH] test loop ref (unix broken)
---
test/test-list.h | 4 ++++
test/test-ref.c | 15 +++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
ryan@mac1234:~/projects/node% node -e "process.stdout.end('hello world\n');"
hello world
^C% [hangs]
ryan@mac1234:~/projects/node% ~/attic/v0.4.10/bin/node -e "process.stdout.end('hello world\n');"hello world
net.js:391
throw new Error('Socket is not writable');
^
Error: Socket is not writable
at WriteStream._writeOut (net.js:391:11)
commit 403a4b400032579db6f8552bc3bf415e1ed4b660
Author: Ryan Dahl <[email protected]>
Date: Fri Sep 23 11:58:12 2011 -0700
wip
diff --git a/include/uv.h b/include/uv.h
index b8bdc09..948996a 100644
--- a/include/uv.h
+++ b/include/uv.h
--- Raw source ---
(a, b) {
return a + b;
}
--- Code ---
kind = FUNCTION
name = add
Instructions (size = 56)
diff --git a/wscript b/wscript
index dbf93b1..d9f582b 100644
--- a/wscript
+++ b/wscript
@@ -576,7 +576,7 @@ def v8_cmd(bld, variant):
else:
snapshot = ""
- cmd_R = sys.executable + ' "%s" -j %d -C "%s" -Y "%s" visibility=default mode=%s %s toolchain=%s library=static %s'
+ cmd_R = sys.executable + ' "%s" -j %d -C "%s" -Y "%s" visibility=default objectprint=on mode=%s %s toolchain=%s library=static %s'