Skip to content

Conversation

@RafaelMeir4
Copy link

Summary

This PR adds SvelteKit to the benchmarks.

SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. It provides features like server-side rendering, routing, and can be deployed to various platforms including Node.js with the @sveltejs/adapter-node.

Changes

  • Added benchmarks/sveltekit.mjs - benchmark entry point
  • Added benchmarks/sveltekit-app/ - SvelteKit application with:
    • Simple JSON endpoint returning { hello: 'world' }
    • Node.js adapter configuration
  • Updated lib/packages.js to include sveltekit
  • Updated package.json with build script for sveltekit
  • Updated .github/workflows/benchmarks.yml to run sveltekit benchmark

close #303

Checklist

@mcollina
Copy link
Member

mcollina commented Dec 6, 2025

Linting is failing!

@mcollina
Copy link
Member

mcollina commented Dec 6, 2025

Instead of relying on a custom build step only for vite, can you add it to package.json? In the future if we have other frameworks that need build steps we can do it there.

@RafaelMeir4
Copy link
Author

Yes, I can add it. I'll fix the linting and move the build step to package.json.
I was hesitant to touch package.json at first, but it makes much more sense to keep it generic for future frameworks.

Instead of relying on a custom build step only for vite, can you add it to package.json? In the future if we have other frameworks that need build steps we can do it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sveltekit Performance Benchmark Comparison

2 participants