Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
iframe vs window
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native
15814072.0 Ops/sec
Iframe
15004533.0 Ops/sec
Script Preparation code:
var iframe = document.createElement("iframe"); iframe.src = "about:blank"; document.documentElement.appendChild(iframe); var _window = iframe.contentWindow; var iframeSplit = _window.String.prototype.split; var split = String.prototype.split; document.documentElement.removeChild(iframe);
Tests:
Native
split.call("a_random_string_test", "");
Iframe
iframeSplit.call("a_random_string_test", "");