function testMainThread(script_str) { const eval_f = eval; const stencil = compileToStencil(script_str, optionsFull); const result = evalStencil(stencil, optionsFull);
assertEq(result, eval_f(script_str));
}
function testMainThreadDelazifyAll(script_str) { if (isLcovEnabled()) { // Code-coverage implies forceFullParse = true, and as such it cannot be // used while testing to incrementally delazify. return;
} const eval_f = eval; const stencil = compileToStencil(script_str, optionsLazy); const result = evalStencil(stencil, optionsLazy);
assertEq(result, eval_f(script_str));
}
function testMainThreadCacheAll(script_str) { if (isLcovEnabled() || helperThreadCount() === 0) { // Code-coverage implies forceFullParse = true, and as such it cannot be // used while testing to incrementally delazify. // Similarly, concurrent delazification requires off-threads processing. return;
} const eval_f = eval; const stencil = compileToStencil(script_str, optionsLazyCache); const result = evalStencil(stencil, optionsLazyCache);
assertEq(result, eval_f(script_str));
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.