Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove uname and git-rev detection from http_simple.js
  • Loading branch information
ry committed Oct 12, 2011
1 parent b896687 commit 16e1d5b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions benchmark/http_simple.js
Expand Up @@ -11,26 +11,6 @@ for (var i = 0; i < 20*1024; i++) {
fixed += "C";
}

var uname, rev;

exec('git rev-list -1 HEAD', function (e, stdout) {
if (e) {
console.error("Problem executing: 'git rev-list -1 HEAD'");
throw new Error(e);
}
rev = stdout.replace(/\s/g, '');
});

exec('uname -a', function (e, stdout) {
if (e) {
console.error("Problem executing: 'uname -a'");
throw new Error(e);
}
uname = stdout.replace(/[\r\n]/g, '');
});



stored = {};
storedBuffer = {};

Expand Down Expand Up @@ -74,9 +54,6 @@ var server = http.createServer(function (req, res) {
} else if (command == "fixed") {
body = fixed;

} else if (command == "info") {
body = 'rev=' + rev + '\nuname="' + uname + '"\n';

} else {
status = 404;
body = "not found\n";
Expand Down

0 comments on commit 16e1d5b

Please sign in to comment.