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 (X11; Ubuntu; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Browser:
Firefox 131
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native
8923804.0 Ops/sec
Iframe
10534490.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", "");