SvelteBench: leaderboard
Nine component-writing tasks for Svelte 5, covering runes such as derived, effect and props plus snippets and each blocks. Each task is sampled ten times by default, once for expensive models, and each generated component is run against the task's Vitest tests. The board averages pass@1, the chance one sample passes all of a task's tests, over the nine tasks; higher is better. Source: github.com/khromov/svelte-bench.
Metric: Average pass@1 (%). Source: khromov.github.io. Saturation forecast: Estimated already saturated. 282 models tracked. Updated 4 Dec 2026.
Top models
| # | Model | Score | Overall rank |
|---|---|---|---|
| 1 | Gemini 3.1 Pro (Preview) | 100 | #102 |
| 2 | Claude Sonnet 4.6 | 100 | #189 |
| 3 | GPT-5.4 | 100 | #142 |
| 4 | Gemma 4 31B (IT) | 100 | #376 |
| 5 | GPT-5.5 | 100 | #52 |
| 6 | Claude Opus 4.6 | 100 | #119 |
| 7 | Claude Opus 4.7 | 100 | #88 |
| 8 | Claude Opus 4.8 | 100 | #64 |
| 9 | Gemini 3.8 Flash | 100 | #46 |
| 10 | GPT-6 Astra | 100 | #11 |
| 11 | Claude Opus 4.5 | 100 | #172 |
| 12 | DeepSeek V4.1 Flash | 100 | #80 |
| 13 | GPT-5.6 Luna | 100 | #139 |
| 14 | Claude Sonnet 5 | 100 | #130 |
| 15 | GPT-6.1 Sol | 100 | #15 |
No result here: #2 Claude Fable 5.2.
Example tasks
# Hello World Component Task Create a simple Svelte 5 component that displays "Hello, World!" with some styling. ## Requirements: 1. Create a Svelte component called HelloWorld 2. The component should display the text "Hello, World!" in a div with data-testid="greeting" 3. Add a CSS class "greeting" to style the text 4. Make the text color blue 5. Center the text on the page 6. Add a small…
# $effect Rune Component Task Create a simple Svelte 5 component that demonstrates the `$derived` rune. ## Requirements: 1. Use `$state` for a number input starting at 5 2. Use `$derived` to calculate the doubled value of the number 3. Display both the number and the doubled value 4. Include a button to increment the number by 1 Elements should have these data-testid attributes: -…
Interactive version: theaggregate.ai/benchmark?slug=sveltebench · How It Works · Data refreshed daily, snapshot 2026-12-04.