Test case name | Result |
---|---|
.first() | |
:first | |
.filter(:first) | |
.eq(0) | |
$(.get(0)) | |
$([0]) | |
:eq(0) |
Test name | Executions per second |
---|---|
.first() | 61157.2 Ops/sec |
:first | 41783.9 Ops/sec |
.filter(:first) | 35651.9 Ops/sec |
.eq(0) | 57153.0 Ops/sec |
$(.get(0)) | 49856.6 Ops/sec |
$([0]) | 55035.3 Ops/sec |
:eq(0) | 43791.0 Ops/sec |