MCPcopy
hub / github.com/webpack/webpack / primeTaskSync

Function primeTaskSync

test/BenchmarkTestCases.benchmark.mjs:853–862  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

851 * @param {Task} task task
852 */
853 const primeTaskSync = (task) => {
854 const meta = uriMap.get(task.name);
855 if (!meta) return;
856 meta.options?.beforeAll?.call(task, "warmup");
857 try {
858 iteration(task, task.name);
859 } finally {
860 meta.options?.afterAll?.call(task, "warmup");
861 }
862 };
863
864 bench.run = async () => {
865 setupBenchRun();

Callers 1

withCodSpeedFunction · 0.85

Calls 3

iterationFunction · 0.85
getMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected