Test (v3)

Revision 3 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
window.LID = 0

$B = {
	LUD: 0,
	LID: 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(0x3))(0x4)
ready
Global
LUD = 0x400000003; let R = fuo();
LUD = 0x4; cull(R)();
ready
$B let
$B.LUD = 0x400000003; let R = fuo();
$B.LUD = 0x400000004; cull(R)();
ready
$B let2
$B.LID = 0x4
$B.LUD = 0x3; let R = fuo();
$B.LUD = 0x4; cull(R)();
ready
Global 2
LID = 0x4;
LUD = 0x3; let R = fuo();
LUD = 0x4; cull(R)();
ready

Revisions

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