addEventListener vs jQuery .click and .on (version: 0)
addEventListener vs addEventListener anon vs $().click vs $().click anon vs onclick vs onclick anon vs $().on('click') vs $().on('click') anon
Based on: https://measurethat.net/Benchmarks/Show/6526/0/addeventlistener-vs-jquery
Comparing performance of: addEventListener vs addEventListener anon vs $().click vs $().click anon vs onclick vs onclick anon vs $().on('click') vs $().on('click') anon
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
addEventListener
addEventListener anon
$().click
$().click anon
onclick
onclick anon
$().on('click')
$().on('click') anon
Fastest:N/A
Slowest:N/A
ⓘGet performance results from real users on your website with Request Metrics.
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one to run it!