diff --git a/benchmarking/benchmarks/reactivity/index.js b/benchmarking/benchmarks/reactivity/index.js index 0fb6e10fa6..58b3f5cb29 100644 --- a/benchmarking/benchmarks/reactivity/index.js +++ b/benchmarking/benchmarks/reactivity/index.js @@ -1,7 +1,4 @@ -import { - kairo_avoidable_owned, - kairo_avoidable_unowned -} from './kairo/kairo_avoidable.js'; +import { kairo_avoidable_owned, kairo_avoidable_unowned } from './kairo/kairo_avoidable.js'; import { kairo_broad_owned, kairo_broad_unowned } from './kairo/kairo_broad.js'; import { kairo_deep_owned, kairo_deep_unowned } from './kairo/kairo_deep.js'; import { kairo_diamond_owned, kairo_diamond_unowned } from './kairo/kairo_diamond.js'; diff --git a/benchmarking/benchmarks/ssr/index.js b/benchmarking/benchmarks/ssr/index.js index 71c26f618b..667137d1ed 100644 --- a/benchmarking/benchmarks/ssr/index.js +++ b/benchmarking/benchmarks/ssr/index.js @@ -1,6 +1,3 @@ -import { wrapper_bench } from "./wrapper/wrapper_bench.js"; +import { wrapper_bench } from './wrapper/wrapper_bench.js'; - -export const ssr_benchmarks = [ - wrapper_bench -] +export const ssr_benchmarks = [wrapper_bench]; diff --git a/benchmarking/benchmarks/ssr/wrapper/App.svelte b/benchmarking/benchmarks/ssr/wrapper/App.svelte index fece539d28..93f031f2bc 100644 --- a/benchmarking/benchmarks/ssr/wrapper/App.svelte +++ b/benchmarking/benchmarks/ssr/wrapper/App.svelte @@ -1,34 +1,31 @@
- {#each tiles as { x, y }} -
-
- {/each} + {#each tiles as { x, y }} +
+ {/each}
diff --git a/benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js b/benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js index c8debcc5f0..ba0457b80e 100644 --- a/benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js +++ b/benchmarking/benchmarks/ssr/wrapper/wrapper_bench.js @@ -1,14 +1,14 @@ -import { render } from "svelte/server"; -import { fastest_test, read_file, write } from "../../../utils.js"; -import { compile } from "svelte/compiler"; +import { render } from 'svelte/server'; +import { fastest_test, read_file, write } from '../../../utils.js'; +import { compile } from 'svelte/compiler'; -const dir = `${process.cwd()}/benchmarking/benchmarks/ssr/wrapper` +const dir = `${process.cwd()}/benchmarking/benchmarks/ssr/wrapper`; async function compile_svelte() { const output = compile(read_file(`${dir}/App.svelte`), { generate: 'server' }); - write(`${dir}/output/App.js`, output.js.code) + write(`${dir}/output/App.js`, output.js.code); const module = await import(`${dir}/output/App.js`); @@ -19,12 +19,12 @@ export async function wrapper_bench() { const App = await compile_svelte(); // Do 3 loops to warm up JIT for (let i = 0; i < 3; i++) { - render(App) + render(App); } const { timing } = await fastest_test(10, () => { for (let i = 0; i < 100; i++) { - render(App) + render(App); } });