Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
decoding with JSON.decode and atob
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Browser:
Firefox 121
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
decoding
151.1 Ops/sec
no decoding
363.3 Ops/sec
Script Preparation code:
var encoded = []; var decoded = []; for (var i = 0; i < 500; i++) { decoded.push({"supports":{"moduleMove":true,"moduleDuplicate":true,"moduleDelete":true,"imageResize":true,"imageAlign":true,"imageCaption":true,"imageFullWidth":false},"fitsInContent":true,"alias":null,"isInSectionLoop":false,"imageId":Math.round(Math.random() * 10000),"imageAnimated":false,"imagePosition":1,"imageFit":true,"caption":"","link":"","linkTarget":"","imageAlt":"","linkTitle":"","iiePayload":{"zoom":2.0286,"cropXRatio":1,"cropYRatio":1,"version":1},"imageWidth":900,"imageHeight":382,"imageUrl":"https:\/\/diydev-shard01-cms.petsi.lan\/webseitendaten\/656\/563\/460\/images\/cache\/98.jpg?t=1475494410","origImageUrl":"https:\/\/diydev-shard01-cms.petsi.lan\/webseitendaten\/656\/563\/460\/images\/upload\/98.jpg?t=1475494410","origImageWidth":1600,"origImageHeight":1065,"transformedImageUrl":null,"transformedImageWidth":null,"transformedImageHeight":null,"imageMediaType":"JPEG","teaserboxWidth":900,"teaserboxHeight":700,"isFullwidth":false}); encoded.push(btoa(JSON.stringify(decoded[i]))); }
Tests:
decoding
for (var j = 0; j < encoded.length; j++) { console.log(JSON.parse(atob(encoded[j]))); }
no decoding
for (var k = 0; k < decoded.length; k++) { console.log(decoded[k]); }