Ramda propEq speed

Benchmark created on


Description

How much does ramda's implementation chooch?

Preparation HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script>

Setup

const myTestObject = {
	farts: "yes",
	foo: "bar",
	name: "tits",
	city: "florndorn"
}

Test runner

Ready to run.

Testing in
TestOps/sec
Ramda propEq
if (R.propEq('city', 'florndorn')(myTestObject)) {
	console.log('Yep, florndorn.')
}
ready
Vanilla JS
if (myTestObject.city === "florndorn") {
	console.log('Yep, florndorn.')
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.