MCPcopy
hub / github.com/less/less.js / nextRun

Function nextRun

packages/less/benchmark/index.js:26–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 nextRun();
25
26 function nextRun() {
27 const start = performance.now();
28
29 less.parse(data, { filename: file, paths: [path.dirname(file)] }, function(err, root, imports, options) {
30 if (err) {
31 console.log(err);
32 process.exit(3);
33 }
34 const parserEnd = performance.now();
35
36 const tree = new less.ParseTree(root, imports);
37 tree.toCSS(options);
38
39 const renderEnd = performance.now();
40
41 renderBenchmark.push(renderEnd - start);
42 parserBenchmark.push(parserEnd - start);
43 evalBenchmark.push(renderEnd - parserEnd);
44
45 i += 1;
46 if (i < totalruns) {
47 nextRun();
48 }
49 else {
50 finish();
51 }
52 });
53 }
54
55 function finish() {
56 function analyze(benchmark, benchMarkData) {

Callers 1

index.jsFile · 0.85

Calls 3

toCSSMethod · 0.95
pushMethod · 0.80
finishFunction · 0.70

Tested by

no test coverage detected