HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
let obj = {a:Array.from({length:1337},(b,i)=>i)}
let src = URL.createObjectURL(new Blob([JSON.stringify(obj)]))
obj = null
Tests:
  • fetch

     
    void async function () {
    (await (await fetch(src)).json()).a.reduce((a,b)=>a+b)
    URL.revokeObjectURL(src)
    deferred.resolve()
    }()
  • import

     
    void async function () {
    (await import(src, { with: { type: 'json' } })).a.reduce((a,b)=>a+b)
    URL.revokeObjectURL(src)
    deferred.resolve()
    }()
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fetch
    import

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Chrome OS 14541.0.0
View result in a separate tab
Test name Executions per second
fetch 2500.5 Ops/sec
import 55093.5 Ops/sec