v1
5/26/2021 by pushkine -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const arr = Array.from({length:42},()=>({v:Math.random(),a:Array.from({length:51},()=>{const v = Math.random(); return {v, a: Array.from({length:28},()=>({v:Math.random(),a:[]}))}})}));
let r = 0.0;

function testA(arr){
	for(let i = 0; i < arr.length; i++) {
		(function sua(brr){
			for(let i = 0; i < brr.length; i++) {
				r+= brr[i].v;
				sua(brr[i].a);
			}
		})(arr);
	}
}

function testB(arr) {
	for(let i = 0; i < arr.length; i++) {
		sub(arr);
	}
}

function sub(arr) {
	for(let i = 0; i < arr.length; i++) {
		r+= arr[i].v;
		sub(arr[i].a);
	}
}
delete caserun single casemove downdrag and drop case


ready



testB(arr);
delete caserun single casemove updrag and drop case


ready



testA(arr);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN