HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
x
 
function omit(obj, keys) {
    return keys.reduce((a, e) => {
        const {
            [e]: _, ...rest
        } = a;
        return rest;
    }, obj);
}
function omit2(obj, keys) {
    return Object.fromEntries(Object.entries(obj).filter(([k]) => !keys.includes(k)));
}
Tests:
  • omit

     
    omit({ a: 1, b: 2, c: 3 }, ['b']);
  • omit2

     
    omit2({ a: 1, b: 2, c: 3 }, ['b']);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    omit
    omit2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 OPR/117.0.0.0
Opera 117 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
omit 20824730.0 Ops/sec
omit2 4754117.0 Ops/sec