decord/source/13417_result1.js

37 lines
961 B
JavaScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13417
// Function ID: 103052
2026-07-23 10:11:24 +00:00
// Name: result1
2026-07-20 16:05:17 +00:00
// Dependencies: []
2026-07-27 11:26:19 +00:00
// Module 13417 (result1)
2026-07-20 16:05:17 +00:00
arg5.default = function benchmark() {
return (startTimer) => {
2026-07-23 10:11:24 +00:00
let closure_0 = startTimer;
2026-07-20 16:05:17 +00:00
startTimer = startTimer.startTimer;
const features = {
benchmark(title) {
2026-07-23 10:11:24 +00:00
let closure_0 = title;
2026-07-20 16:05:17 +00:00
const items = [];
2026-07-23 10:11:24 +00:00
let closure_2 = items();
2026-07-20 16:05:17 +00:00
function step(title) {
let num = 0;
if (0 !== items.length) {
2026-07-23 10:11:24 +00:00
num = items[items.length - 1].time;
2026-07-20 16:05:17 +00:00
}
const tmp2 = callback();
const obj = { title, time: tmp2, delta: tmp2 - num };
items.push(obj);
}
2026-07-23 10:11:24 +00:00
let obj = { title, time: 0, delta: 0 };
items.push(obj);
2026-07-20 16:05:17 +00:00
function stop(arg0) {
step(arg0);
2026-07-23 10:11:24 +00:00
title.send("benchmark.report", { title, steps: items });
2026-07-20 16:05:17 +00:00
}
return { step, stop, last: stop };
}
};
return { features };
};
};