Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
function vs lambda
(version: 0)
Comparing performance of:
lambda vs function
Created:
3 years ago
by:
Registered User
Jump to the latest result
Tests:
lambda
const midi_to_hz = midi => (2 ** ((midi - 69) / 12)) * 440; let s = 0; for (let i=0; i<10000; i++) s = midi_to_hz(i);
function
function midi_to_hz (midi) { return (2 ** ((midi - 69) / 12)) * 440; } let s = 0; for (let i=0; i<10000; i++) s = midi_to_hz(i);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lambda
function
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:
eval vs new Function v3
eval vs new Function without cached parsing
window.eval function vs new Function
window.eval function vs new Function1
window.eval function vs new Function2
Comments
Confirm delete:
Do you really want to delete benchmark?