Funcs

Benchmark created on


Setup

const readyThing = {
	a: () => 1,
	b: () => 2,
	c: () => 3,
	d: () => 4,
	e: () => 5,
	f: () => 6,	
};

const things = () => {
	return {
		a: () => 1,
		b: () => 2,
		c: () => 3,
		d: () => 4,
		e: () => 5,
		f: () => 6
	};
};

const many = () => {
	return {
		do: () => things()
	}
};

const t = things();
const one = () => {
	return {
		do: {
			a: t.a,
			b: t.b,
			c: t.c,
			d: t.d,
			e: t.e,
			f: t.f
		}
	}
};

Test runner

Ready to run.

Testing in
TestOps/sec
Prepared
readyThing.a();
ready
One
one().do.a();
ready
Many
many().do().a();
ready

Revisions

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