Eval impact on global perf

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Eval present
const data = Array(100000);

function notCalled() {
  eval('const test = "osef";');
}

function simpleFor (d){
  for (let i = 0, len = data.length; i < len; i += 1) {
    d[i] = d[i] + 1;
  }
}
ready
No eval
const data = Array(100000);

function notCalled() {
  const test = 'osef';
}

function simpleFor (d){
  for (let i = 0, len = data.length; i < len; i += 1) {
    d[i] = d[i] + 1;
  }
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.