Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
img src slowness
Creating image tags with/without an src attribute with a data URI.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Clone without src
3.9M/s
Creation without src
3.1M/s
Clone with src
231K/s
Creation with src
215K/s
View exact numbers
Test name
Executions per second
✓
Clone without src
3,863,536 Ops/sec
Creation without src
3,133,548 Ops/sec
Clone with src
231,034 Ops/sec
Creation with src
215,172 Ops/sec
Script Preparation code:
function makeImage( src ) { var img = document.createElement( 'img' ); img.className='nail'; if ( src ) { img.src='data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='; } return img; } withSrc = makeImage( true ); withoutSrc = makeImage( false );
Tests:
Creation with src
makeImage( true );
Creation without src
makeImage( false );
Clone with src
withSrc.cloneNode();
Clone without src
withoutSrc.cloneNode();