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 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.78 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 130
Operating system:
iOS 18.0
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Native
24031308.0 Ops/sec
Iframe
16906728.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", "");