# xMas Performance Challenge by CodSpeed

> Spend December making open source faster. Pick a real open source project, make its benchmarks faster without breaking its tests, and submit with the CodSpeed CLI. The maintainers choose what they want merged upstream. $20,000 in total prizes, Dec 1 to Dec 31, 23:59 UTC.

- [Join the challenge](https://xmas.codspeed.io)
- [Global leaderboard (live)](https://xmas.codspeed.io/leaderboard)
- [Official rules (PDF)](https://xmas.codspeed.io/official-rules.pdf)
- [Challenge overview for AI agents](https://xmas.codspeed.io/llms.txt)

## How to join

1. Install the CLI on macOS or Linux: `curl -fsSL https://xmas.codspeed.io/install.sh | sh`. On Windows: `powershell -ExecutionPolicy Bypass -c "irm https://xmas.codspeed.io/install.ps1 | iex"`. The installers also add `xmas`, a shorter name for `codspeed-xmas`.
2. Get a project: `codspeed-xmas init pydantic/monty` downloads a private copy, frozen at the commit everyone optimizes. The first time, your browser opens to log in with your CodSpeed account.
3. Make it faster: change the code and keep its tests passing. AI tools are allowed and encouraged. `codspeed-xmas guide` recalls what you can change and how to run the benchmarks.
4. Submit: `codspeed-xmas submit`. CodSpeed runs the benchmarks on the same bare-metal machine for everyone and updates your rank. Submit again to climb.

Enter as many projects as you like. Each project has its own leaderboard and prizes, and your results add up on the global leaderboard.

## Projects

New projects drop every week of December, and all of them stay open until December 31.

- [Monty](https://xmas.codspeed.io/projects/monty) (`pydantic/monty`, Rust): a secure Python sandbox, written in Rust, for code written by AI. Judged by Samuel Colvin and David Hewitt.
- [dav2d](https://xmas.codspeed.io/projects/dav2d) (`videolan/dav2d`, C/Assembly): VideoLAN's AV2 decoder, from the team behind dav1d. Judged by Jean-Baptiste Kempf.
- [swc-next](https://xmas.codspeed.io/projects/swc-next) (`swc-project/swc-next`, Rust): a fast JavaScript and TypeScript compiler in Rust, and the next major version of SWC. Judged by DongYun Kang (Donny).

## Global leaderboard

The top 20 on each project earn points, Formula One style: 50, 40, 35, 31, 28, 25, 22, 19, 16, 14, 12, 10, 8, 7, 6, 5, 4, 3, 2, 1. Points add up across projects. The standings are live at https://xmas.codspeed.io/leaderboard.

## Dates

- Dec 1, 15:00 UTC: the challenge opens with its first three projects.
- Every week: new projects drop, all through December.
- Dec 31, 23:59 UTC: submissions close on every project.
- Early January: maintainers review the top entries and choose what they want merged.
- Mid-January: winners and prizes are announced.

## Prizes

$20,000 in total prizes.

- Project prizes, $15,000 shared between all the projects. On each one, the top 3 entries its maintainers choose split its share, paid in cash: 50% for 1st, 30% for 2nd, 20% for 3rd.
- Global leaderboard, the top 5: 280 GB of DDR5 or $5,000. DDR5 RAM, or its equivalent in cash: 128 GB or $2,285 for 1st, 64 GB or $1,145 for 2nd, 48 GB or $855 for 3rd, 24 GB or $430 for 4th, 16 GB or $285 for 5th.

Entries that break tests, only game a benchmark, or aren't of mergeable quality are set aside before judging.
