HTML Preparation code:
AخA
 
1
..
Tests:
  • fn arr

    x
     
      const ka = ['id', 'token', 'family', 'grade', 'hex'];
      const k = 'token';    
      const fl = function(e) {
          return e !== k
        };
        const fna = function() {
          return ka.filter(fl)
        };
        fna();
  • fn obj

     
       const ko = {
          id: undefined,
          token: undefined,
          family: undefined,
          grade: undefined,
          hex: undefined
        };
      const k = 'token';    
    const fno = function() {
          const {[k]: _, ...rest} = ko;
          return Object.keys(rest);
        };
      fno();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fn arr
    fn obj

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Linux
View result in a separate tab
Test name Executions per second
fn arr 6716054.5 Ops/sec
fn obj 580744.1 Ops/sec