@seanox/aspect-js
Version:
full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, virtual paths, unit test and some more
38 lines (35 loc) • 1.07 kB
HTML
<html>
<head>
<meta charset="ISO-8859-1">
<title>Seanox aspect-js test environment</title>
<style>
body {
font-family: monospace;
white-space: pre;
}
</style>
<script src="aspect-js.js"></script>
<script type="text/javascript">
Test.activate();
let source;
Composite.listen(Composite.EVENT_RENDER_END, () => {
source = Test.read("scripting_parse_benchmark.js");
Test.start();
});
Test.create({timeout:5000, test() {
document.body.innerText += "Start 2500 runs\n";
const timing = new Date().getTime();
for (let count = 0; count < 2500; count++) {
try {Scripting.eval(source);
} catch (error) {
Assert.fail(error.message);
}
}
document.body.innerText += "Timing " + (new Date().getTime() -timing) + "\n";
}});
</script>
</head>
<body>
</body>
</html>