mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
453 B
19 lines
453 B
14 years ago
|
// compare with "google-chrome deps/v8/benchmarks/run.html"
|
||
|
var fs = require('fs');
|
||
|
var path = require('path');
|
||
|
var vm = require('vm');
|
||
|
|
||
12 years ago
|
var dir = path.join(__dirname, '..', '..', 'deps', 'v8', 'benchmarks');
|
||
14 years ago
|
|
||
12 years ago
|
global.print = function(s) {
|
||
|
if (s === '----') return;
|
||
|
console.log('misc/v8_bench.js %s', s);
|
||
|
};
|
||
14 years ago
|
|
||
|
global.load = function (x) {
|
||
|
var source = fs.readFileSync(path.join(dir, x), 'utf8');
|
||
|
vm.runInThisContext(source, x);
|
||
|
}
|
||
|
|
||
|
load('run.js');
|