Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
fetch and Jason parsing
(version: 1)
Comparing performance of:
fetch.json() vs fetch+json.parse
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let url = URL.createObjectURL(new Blob([JSON.stringify({a:3,b:3,c:3,n:6,baeij:2,ifjq3:[1,2,3,4,5]})],{type:'application/json'})) function finish() { deferred.resolve() } function auto(j) { j.json().then(finish) } function parse(j) { j.text().then(JSON.parse).then(finish) }
Tests:
fetch.json()
fetch(url).then(auto)
fetch+json.parse
fetch(url).then(parse)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
fetch.json()
fetch+json.parse
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Browser/OS:
Chrome 132 on Chrome OS 14541.0.0
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
fetch.json()
1448.3 Ops/sec
fetch+json.parse
1373.3 Ops/sec
Related benchmarks:
Shallow copy performance
Try-catch
isApplicationJsonSplit vs isApplicationJsonIncludes
JSON.stringify vs structuredClone 2
JSON.parse(JSON.stringify( vs structuredClone( FIXED
JSON.parse(JSON.stringify())1 vs structuredClone
Stringify v. concat
json import vs fetch
json import vs fetchhbyu
Comments
Confirm delete:
Do you really want to delete benchmark?