DEV Community

Discussion on: Practical Functional Programming in JavaScript - Control Flow

Collapse
 
functional_js profile image
Functional Javascript

Nice!

Feel free to post the source code and I'll give it a shot myself.

And yes, as I had mentioned in the Tips section of the Post I linked to above, each test must be run separately, otherwise the compiler may optimize some code by learning from the other code.

Thread Thread
 
richytong profile image
Richard Tong

switchCase benchmarks here: github.com/a-synchronous/rubico/bl...