Custom Event vs Callback [fixed - apples to apples] (version: 0)
Fixes https://www.measurethat.net/Benchmarks/Show/17805/0/custom-event-vs-callback by making sure the console log and actual sync code execution happens. There's no point to dispatch an event without ever listening to it. Such benchmark was not realistic.
Comparing performance of: Custom Event vs Callback
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
Custom Event
Callback
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36