Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
EventStore IndexOf
(version: 0)
Comparing performance of:
isCategoryFirst vs systemEventFirst
Created:
2 years ago
by:
Guest
Jump to the latest result
Tests:
isCategoryFirst
const event = { streamId: "$et-SomeEvent", type: "$>" } const isCategory = event.streamId.includes("-") const isSystemCategoryOrSystemEvent = event.streamId.indexOf("$") == 0 || event.type.indexOf("$") == 0 var result = (!isCategory || isSystemCategoryOrSystemEvent)
systemEventFirst
const event = { streamId: "$et-SomeEvent", type: "$>" } const isCategory = event.streamId.includes("-") const isSystemCategoryOrSystemEvent = event.streamId.indexOf("$") == 0 || event.type.indexOf("$") == 0 var result = (isSystemCategoryOrSystemEvent || !isCategory)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
isCategoryFirst
systemEventFirst
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Object Deconstruction vs Lodash Pick
Lodash isEqual test bigdata
Clone deep benchmarks for PR sections
object.keys vs entries + filtering
URLSearchParams impact
Comments
Confirm delete:
Do you really want to delete benchmark?