Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
dasdasasdasdasdfsdfasdasdqwdq w qw asda asdasd sdf asdasda asdas sd asd s
(version: 0)
higher order function vs simple function perf check
Comparing performance of:
simple function vs higher order function
Created:
5 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var artifacts = { getById: () => [] }
Tests:
simple function
const createFlattenr = (artifacts) => { const getDependencies = (artifactId) => artifacts.getById(artifactId); return (artifactId) => { return [ ...getDependencies(artifactId) ] } } const flatten = createFlattenr(artifacts) for(var i = 0; i < 100; i++) { flatten(i) }
higher order function
const getDependencies = (artifactId) =>{ return artifacts.getById(artifactId); } const flatten = (artifactId) => { return [ ...getDependencies(artifactId) ] } for(var i = 0; i < 100; i++) { flatten(i) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
simple function
higher order 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:
dasdasasdasdasdfsdfasdasdqwdq w qw asda asdasd sdf asdasda asdas sd asd s asdas
dasdasasdasdasdfsdfasdasdqwdq w qw asda asdasd sdf asdasda asdas sd asd s asdassdv
higher order function vs simple function perf checkasdasda sdf
higher order function vs simple function perf checkasdasda sdfdfgasdas
Comments
Confirm delete:
Do you really want to delete benchmark?