You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/benchmarking/run.js

20 lines
406 B

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();