Tickstream

Idle
Messages / s
—
Incoming updates
Latency avg
— ms
p95 — ms · max — ms
FPS
—
worst frame — ms
Main thread (JS)
— %
— ms/s in JS + React
Row renders / s
—
Committed row renders
Book renders / s
—
Only when the visible ladder changed
Renders / message
—
Ideal ≤ 1
Coalesced / s
—
Never drawn · dropped: — invalid, — out of order
PairPrice24h %24h Volume
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…
waiting…

Portfolio

Simulated
Total value
$10,000.00
Total return
$0.00 (0.00%)
Realized P&L
$0.00
Cash
$10,000.00

No holdings yet. Coins you buy in the Trade panel appear here.

Play money. Average-cost method, fees not simulated.

BTC/USD

—
Loading 24h history…

5-minute closes from Coinbase REST

Price alerts

BTC/USD now —

No alerts yet. Pick Above or Below and a price for the selected pair.

Trade BTC/USD

Simulated

Available: $10,000.00

Waiting for the order book…

Play money: starts with $10,000. Saved in this browser only.

Order book BTC/USD

Connecting…
Price (USD)Size (BTC)Total
Connecting…

Ne yaptım, neyi çözdüm?

Problem

Bir piyasa ekranına saniyede yüzlerce fiyat güncellemesi gelir. Her mesajda ekranı yeniden çizmek, özellikle zayıf cihazlarda takılmaya ve gecikmiş fiyatlara yol açar.

Ne yaptım

Önce en basit hâlini (naif sürüm) yazıp ölçtüm. Sonra güncellemeleri kare başına bire indirdim ve yalnızca değişen satırın çizilmesini sağladım. Üzerine canlı emir defteri, grafik, fiyat alarmları, sanal parayla alım-satım ve portföy ekledim. Gerçek emir gönderilmez.

Çıktılar

6× yavaşlatılmış CPU, saniyede 1000 simüle mesaj

ÖlçümÖnceSonra
FPS8,5–1059,6–60
Gecikme430 ms19–27 ms
Mesaj başına satır render200,5–0,6

What I built and what it solves

Problem

A market screen gets hundreds of price updates per second. Redrawing on every message causes jank and late prices, especially on slower devices.

What I did

I built the simplest (naive) version first and measured it. Then I applied updates once per frame and made only the changed row re-render. On top of that I added a live order book, a chart, price alerts, play-money trading and a portfolio. No real order is ever sent.

Results

6× slowed CPU, 1000 simulated messages per second

MetricBeforeAfter
FPS8.5–1059.6–60
Latency430 ms19–27 ms
Row renders per message200.5–0.6

Source code and measurements on GitHub