Test (v2)

Revision 2 of this benchmark created on


Setup

let d = 0
let frame = {line: 0}

function setLine(frame, l) {
	frame.line = l
}

function call(f, a) {
	// do stuff ???
	return f
}

function cull(f) {
	// do stuff ???
	return f
}


function faa(a) {
	d = a
}

function fuo(a) {
	return faa
}

function foo(a) {
	return faa
}

window.LUD = 0

Test runner

Ready to run.

Testing in
TestOps/sec
Brython
setLine(4)
call(foo([0,0,3]))([0,0,4])
ready
Opti
setLine(4)
call(foo(0x000003))(0x000004)
ready
Global const
LUD = 0x040003; const R = fuo();
LUD = 0x040004; cull(R)();
ready
Global let
LUD = 0x040003; let R = fuo();
LUD = 0x040004; cull(R)();
ready

Revisions

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