Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
!every vs some
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
!every
819232512.0 Ops/sec
some
828439040.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const isNumericId = id => id !== null && !isNaN(Number(id)); const values = [ 'qkF2', -63, 6, 72, 30, 4, 89, -91, 2, -1, -9, -82, -12, -50, 22, 4, 71, 19, 33, 79, 45, -88, -100, 96, 89, 23, 43, -57, 0, 53, 36, 55, 66, 41, 43, 49, 76, 24, 68, 7, 85, -38, -13, 14, 71, 68, 66, 94, 55, 11, 62, -33, 42, -5, -27, 33, 1, 40, 60, 45, -41, 99, 23, 59, -64, 48, 6, -79, 69, 70, -72, -78, -6, 82, 100, -54, 18, 41, 91, 80, 36, 47, 25, 72, 29, 39, 'YK3g', 4, 48, 49, 98, 26, -8, 22, 7, -3, -61, 'JplA', 84, 67, 'zE7x', 58, 39, 63, 1, 7, -25, 18, 44, 9, 6, 18, 96, -63, 74, -80, -16, -2, -61, -65, -44, 8, 93, -10, 9, -57, 100, -51, -88, -75, -50, 25, -15, -49, 5, -73, 8, -98, -63, 80, 50, 44, -11, 76, 25, -34, 94, -82, -98, 89, -2, -22, -73, 20, -96, 10, -21, 31, 22, -56, -65, -57, 26, -75, 3, -44, -80, -16, 47, 34, 83, 18, 3, 8, 49, -60, -43, 79, 11, 25, 49, 39, 36, 20, 86, 47, -92, -94, -48, -25, -59, 15, 22, -30, -87, -91, 18, 69, -64, -42, 37, -29, 65, -55, 19, 79, -79, 63, 35, -33, -88, -100, 96, 89, 23, 43, -57, 0, 53, 36, 55, 66, 41, 43, 49, 76, 24, 68, 7, 85, -38, -13, 14, 71, 68, 66, 94, 55, 11, 62, -33, 42, -5, -27, 33, 1, 40, 60, 45, -41, 99, 23, 59, -64, 48, 6, -79, 69, 70, -72, -78, -6, 82, 100, -54, 18, 41, 91, 80, 36, 47, 25, 72, 29, 39, 'YK3g', 4, 48, 49 ];
Tests:
!every
const result = !values.every(v => isNumericId(v));
some
const result = values.some(v => !isNumericId(v));