Skip to content

Instantly share code, notes, and snippets.

View jriewerts's full-sized avatar

John Riewerts jriewerts

View GitHub Profile
@jriewerts
jriewerts / index.js
Created January 31, 2015 21:40
benchmark compairson of VM new context, VM current context, and eval
var Benchmark = require('Benchmark'),
vm = require('vm');
var strTest = 'var testFunc = function(name){ return "hello " + name; }; testFunc;';
//strTest = 'require("util").inspect';
console.info('\n***********************************************************************');
console.info('* benchmark execute only. Compilation or evaluation done prior');
console.info('***********************************************************************\n');