Tests:
  • fn 1

    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 2

     
        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();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fn 1
    fn 2

    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 1 8298743.0 Ops/sec
fn 2 8715799.0 Ops/sec