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

#ModelScoreOverall rank
1Gemini 3.1 Pro (Preview)100#102
2Claude Sonnet 4.6100#189
3GPT-5.4100#142
4Gemma 4 31B (IT)100#376
5GPT-5.5100#52
6Claude Opus 4.6100#119
7Claude Opus 4.7100#88
8Claude Opus 4.8100#64
9Gemini 3.8 Flash100#46
10GPT-6 Astra100#11
11Claude Opus 4.5100#172
12DeepSeek V4.1 Flash100#80
13GPT-5.6 Luna100#139
14Claude Sonnet 5100#130
15GPT-6.1 Sol100#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…

Source

# $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:

-…

Source

Interactive version: theaggregate.ai/benchmark?slug=sveltebench · How It Works · Data refreshed daily, snapshot 2026-12-04.