Challenge 02 (C++ and Rust): workload v3, badge edition v3. Exchange ids are now drawn as on a real venue: large 64-bit numbers with gaps, mostly increasing, a few far below the rest (see "Order Ids" in EXCHANGE.md; a table indexed by part of the id must handle collisions). Both boards check every best bid/ask and queue-position answer, then the whole book at the end, against a reference book, and the public benchmark runs the same checks on a public seed. Rust bronze is now 2550. All scores are being re-run; your v2 badges stay valid under "Earlier editions".
New: FPGA challenges. A cut-through UDP echo in Verilog or Vitis HLS, and a 10GBASE-R receive path scored in nanoseconds. Simulated against hidden tests in minutes, timed in Vivado overnight. See the FPGA challenges
Challenge 02 (Multi-Symbol Order Book), C++ and Rust: new workload, both boards recalibrated (18 Nov). Prices are now positive integers up to 1,000,000 with no guaranteed tick size, and the hot symbols are no longer fixed; the C++ spec and the Rust README say so. The old generator also had a flaw: its books ended crossed, with best bids piled at the price ceiling, so it never behaved like a real order book. Every member's latest and best submissions are being re-run now. Entries whose tables stop at 100,000 fail on the new workload. On the Rust board that range was the published contract, so those entries were right at the time and only need their limits widened. New Rust lines: gold under 1,600, silver under 2,200, bronze under 2,700 (the Rust skeleton now scores about 2,850). C++ lines are unchanged.
Write fast code. Get certified benchmark results.
Your submissions are private. Submit as often as you like — only your best score appears on the leaderboard.
| Challenge | Top 3 | ||
|---|---|---|---|
|
Challenge 01: Best Price Tracker
Build a high-performance limit order book that supports: |
Jikan
14 cycles/op |
odygrd
14 cycles/op |
Antonin Kriz
14 cycles/op |
|
Challenge 01: Best Price Tracker (Rust)
Build a high-performance limit order book in Rust that supports: |
leviathanbeak
22 cycles/op |
Calvin L.
23 cycles/op |
Przemek S.
23 cycles/op |
|
Challenge 02: Multi-Symbol Order Book
Build a multi-symbol order book with queue position tracking, venue interaction, |
Przemek S.
870 cycles/op |
tnn1t1s .
1,462 cycles/op |
Nicolai
1,879 cycles/op |
|
Challenge 02: Multi-Symbol Order Book (Rust)
Build a multi-symbol order book in Rust with queue position tracking, venue interaction, |
tnn1t1s .
1,392 cycles/op |
0x8ff
2,053 cycles/op |
Rok P.
2,715 cycles/op |
|
Challenge 03: Event Scheduler
Build a high-performance event scheduler that can handle millions of pending |
Przemek S.
310 cycles/op |
odygrd
434 cycles/op |
frfx
434 cycles/op |
|
Challenge 03: Event Scheduler (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/event-scheduler) for full problem description. |
tnn1t1s .
496 cycles/op |
Vadzim .
558 cycles/op |
Calvin L.
806 cycles/op |
|
Challenge 04: Event Scheduler (No Cancel)
## Event Scheduler — No Cancel |
Przemek S.
248 cycles/op |
odygrd
248 cycles/op |
Malacarne
248 cycles/op |
|
Challenge 04: Event Scheduler — No Cancel (Rust)
Implement a high-performance event scheduler (no cancel support). |
tnn1t1s .
186 cycles/op |
Calvin L.
434 cycles/op |
Vadzim .
620 cycles/op |
|
Challenge 05: Ring Buffer
Build a high-performance SPSC (Single-Producer Single-Consumer) ring buffer for passing market data messages between... |
TH
961 cycles/msg |
tnn1t1s .
969 cycles/msg |
Jikan
970 cycles/msg |
|
Challenge 06: Seqlock
Build a high-performance sequence lock (seqlock) that allows one writer and multiple readers to share data without blocking. |
odygrd
355 cycles/op |
Sébastien K.
356 cycles/op |
frfx
356 cycles/op |
|
Challenge 07: String Map
Build a high-performance hash map with string keys (up to 16 characters) and `uint32_t` values. |
Noah
17 cycles/op |
Malacarne
24 cycles/op |
Stefan P.
25 cycles/op |
|
Challenge 07: String Map (Rust)
Implement a fast string-keyed hash map. Insert 100K key-value pairs, then look them all up. |
tnn1t1s .
34 cycles/op |
0x8ff
46 cycles/op |
raventid
59 cycles/op |
|
Challenge 08: Ticker Lookup
Build the fastest possible ticker symbol lookup table. |
Przemek S.
7 cycles/op |
Hang
7 cycles/op |
TH
7 cycles/op |
|
Challenge 08: Ticker Lookup (Rust)
Build a lookup table for ticker symbols. `build()` is called once (not timed), |
James Y.
14 cycles/op |
tnn1t1s .
15 cycles/op |
Malacarne
17 cycles/op |
|
Challenge 09: FIX Parser
Build a high-performance FIX protocol parser for order messages. |
Malacarne
123 cycles/KB |
Przemek S.
197 cycles/KB |
Noah
199 cycles/KB |
|
Challenge 09: FIX Parser (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/fix-parser) for full problem description. |
Malacarne
110 cycles/op |
tnn1t1s .
196 cycles/op |
Pavel Baikov
248 cycles/op |
|
Challenge 10: FIX Encoder
Build a high-performance FIX message encoder for order entry. |
Malacarne
22 cycles/msg |
Przemek S.
37 cycles/msg |
odygrd
54 cycles/msg |
|
Challenge 10: FIX Encoder (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/fix-builder) for full problem description. |
Malacarne
45 cycles/op |
tnn1t1s .
195 cycles/op |
Mero
234 cycles/op |
|
Challenge 11: Rolling Counter
Build a high-performance rolling window event counter. |
Przemek S.
3,395 cycles/kop |
Sergey Kintsel
6,754 cycles/kop |
frfx
6,902 cycles/kop |
|
Challenge 11: Rolling Counter (Rust)
Maintain a sliding window count of events. Update time, add events, query count. |
tnn1t1s .
5,041 cycles/kop |
0x8ff
16,526 cycles/kop |
Admin
18,448 cycles/kop |
|
Challenge 12: Feed Arbiter
## Feed Arbitration |
odygrd
9 cycles/op |
Malacarne
9 cycles/op |
Przemek S.
10 cycles/op |
|
Challenge 12: Feed Arbiter (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/feed-arbiter) for full problem description. |
Malacarne
19 cycles/op |
Mero
19 cycles/op |
tnn1t1s .
21 cycles/op |
|
Challenge 13: Implied Book
## Implied Order Book |
Przemek S.
41 cycles/op |
Hang
47 cycles/op |
Malacarne
59 cycles/op |
|
Challenge 13: Implied Book (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/implied-book) for full problem description. |
tnn1t1s .
106 cycles/op |
Malacarne
207 cycles/op |
0x8ff
271 cycles/op |
|
Challenge 14: Build Optimization
This challenge is different. The code is frozen — you cannot modify it. |
odygrd
2,127 cycles/kop |
Przemek S.
2,264 cycles/kop |
frfx
2,278 cycles/kop |
|
Challenge 15: Implied Volatility
## Implied Volatility Solver |
Malacarne
21 cycles/op |
Przemek S.
30 cycles/op |
tnn1t1s .
36 cycles/op |
|
Challenge 15: Implied Volatility (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/implied-vol) for full problem description. |
Malacarne
37 cycles/op |
tnn1t1s .
53 cycles/op |
Pavel Baikov
431 cycles/op |
|
Challenge 16: Monte Carlo Pricer
## Monte Carlo Option Pricer |
Przemek S.
199 cycles/op |
Malacarne
3,495 cycles/op |
Davide Spataro
206,809 cycles/op |
|
Challenge 16: Monte Carlo Pricer (Rust)
Rust version of the challenge. See C++ challenge page(/challenge/monte-carlo) for full problem description. |
Malacarne
5,646 cycles/op |
tnn1t1s .
6,479,960 cycles/op |
Pavel Baikov
7,603,380 cycles/op |
|
Challenge 17: Cross-CCX Ring Buffer
Same interface as Challenge 05(/challenge/ring-buffer) — but the producer |
Przemek S.
1,410 cycles/msg |
Hang
1,442 cycles/msg |
frfx
1,527 cycles/msg |
|
Challenge 18: Build Optimization II
A second flags-only challenge. The code is frozen — your only lever is the |
Przemek S.
5 cycles/op |
odygrd
5 cycles/op |
Noah
5 cycles/op |
|
Challenge 19: Memory Triathlon
Write a custom allocator — and only the allocator. We replay a recorded |
odygrd
226 cycles |
Przemek S.
227 cycles |
K. Reznik
230 cycles |
|
Challenge 20: Fast Integer-to-String
Convert a `uint64_t` to decimal text as fast as possible. |
tnn1t1s .
9 cycles/op |
Przemek S.
9 cycles/op |
odygrd
11 cycles/op |
|
FPGA 01: Cut-Through UDP Echo (HLS)
The same challenge as FPGA 01 (RTL)(https://github.com/Vitorian/hft-challenges/tree/main/fpga-01-udp-echo/README.md)... |
Malacarne
4 cycles |
Admin
281 cycles |
— |
|
FPGA 01: Cut-Through UDP Echo (RTL)
Echo UDP packets back to the sender with as few clock cycles as possible between the first byte in |
Malacarne
4 cycles |
Admin
278 cycles |
Michael Dudalev
278 cycles |
|
FPGA 02: Low-Latency 10GBASE-R Receive Path
Every nanosecond a trading FPGA spends between the fibre and its logic is spent in the PHY and the |
Malacarne
56 ns |
Admin
1,279 ns |
Michael Dudalev
1,279 ns |