rm push/pop

This commit is contained in:
2026-02-26 08:13:18 -06:00
parent eb19b18594
commit a1b41d5ecf
59 changed files with 19546 additions and 19265 deletions

View File

@@ -15,7 +15,7 @@ var nll = null
var oll = null
for (i = 0; i < 10000; i++) {
accstr += i;
push(newarr, text(i))
newarr[] = text(i)
}
var jsonDecodeTimes = [];
var jsonEncodeTimes = [];
@@ -26,19 +26,19 @@ var notaSizes = [];
for (i = 0; i < 100; i++) {
start = os.now();
jll = json.decode(ll);
push(jsonDecodeTimes, (os.now() - start) * 1000);
jsonDecodeTimes[] = (os.now() - start) * 1000;
start = os.now();
jsonStr = JSON.stringify(jll);
push(jsonEncodeTimes, (os.now() - start) * 1000);
jsonEncodeTimes[] = (os.now() - start) * 1000;
start = os.now();
nll = nota.encode(jll);
push(notaEncodeTimes, (os.now() - start) * 1000);
notaEncodeTimes[] = (os.now() - start) * 1000;
start = os.now();
oll = nota.decode(nll);
push(notaDecodeTimes, (os.now() - start) * 1000);
notaDecodeTimes[] = (os.now() - start) * 1000;
}
function getStats(arr) {