typed array vs cached variable

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
typed
['foo','bar','baz','pee','poo','paz','goo'].forEach(function (term) {
console.log(term);
});
ready
cached
var termArray = ['foo','bar','baz','pee','poo','paz','goo'];

termArray.forEach(function (term) {
console.log(term);
});
ready

Revisions

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