disable long stack trace to improve performance

This commit is contained in:
Andrey Sidorov 2012-07-16 14:26:33 +10:00
parent f70108e6f3
commit 7df3e1d3fd

View file

@ -100,11 +100,14 @@ XClient.prototype.importRequestsFromTemplates = function(target, reqs)
else
client.seq_num++;
// long stack traces. going to disable in next commit, keep it currently to compare performance
// disable long stack trace for the moment, it's too expensive
// performance when enabled: 70000 requests finished in 52196 ms, 1341.0989347842747 req/sec
/*
var err = new Error;
err.name = reqName;
Error.captureStackTrace(err, arguments.callee);
client.seq2stack[client.seq_num] = err.stack;
*/
// is it fast?
var args = Array.prototype.slice.call(req_proxy.arguments);