mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-28 07:52:41 +01:00
20 lines
406 B
JavaScript
20 lines
406 B
JavaScript
|
import * as $ from '../packages/svelte/src/internal/client/index.js';
|
||
|
import { mol_bench } from './benchmarks/mol_bench.js';
|
||
|
|
||
|
const benchmarks = [mol_bench];
|
||
|
|
||
|
async function run_benchmarks() {
|
||
|
const results = [];
|
||
|
|
||
|
$.push({}, true);
|
||
|
for (const benchmark of benchmarks) {
|
||
|
results.push(await benchmark());
|
||
|
}
|
||
|
$.pop();
|
||
|
|
||
|
// eslint-disable-next-line no-console
|
||
|
console.log(results);
|
||
|
}
|
||
|
|
||
|
run_benchmarks();
|