Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
Array 101912688.0 Ops/sec
Set 171892736.0 Ops/sec
HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
var a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var b = new Set(a)
Tests:
  • Array

     
    a.includes(5)
  • Set

     
    b.has(5)