Every millisecond counts.

See it sooner. Act sooner. With 1,122 candles and 12 moving averages on screen, KCQ draws each frame in 1.35 ms of main-thread time.

Tested October 26, 2026 on Apple M4 Pro, Chrome 155.0.8059.85. How we tested
Main-thread time per frameLower is better
  1. KLineChartQuantWebGPU1.35ms
  2. Lightweight ChartsCanvas2D1.36ms
  3. KLineChartQuantWebGL21.70ms
  4. KLineChartQuantCanvas2D2.07ms
  5. KLineChartCanvas2D2.21ms
  6. Apache EChartsCanvas2D4.74ms

Bars are the mean of 600 frames × 5 rounds; the line spans the fastest and slowest round. A 60 Hz frame is 16.7 ms.

The denser the chart, the clearer the difference.

  • 7.4×the candles on screen, from 152 to 1,122. KCQ's cost per frame rises only 8%.
  • +7%KCQ's cost per frame going from 5 to 12 moving averages. Apache ECharts's: +65%.
  • 3.5×lighter than Apache ECharts, drawing the same screen of candles.
  • <9%of a 16.7 ms frame goes to the chart. The rest is yours: strategies, indicators, your agent.
Open and reproducible: method, machine and every frame of raw data

The same candles and moving averages, drawn by each library and scrolled one bar per frame.

Method

  1. 1Same data: 50,000 seeded one-minute candles under five simple moving averages (5 to 60) or twelve (5 to 300), mounted through each library's public API from a production build.
  2. 2Same window: KCQ snaps bar width to whole device pixels, so its reachable counts set the tiers and every other library zooms to the same number of visible bars.
  3. 3Same motion: after warm-up frames, each chart scrolls one bar per frame, in several rounds per library and tier.
  4. 4The metric: Chrome's main-thread task time divided by frames, which covers script, style, layout and garbage collection. Work in the GPU process is not counted.
  5. 5Frame rate is not compared: headless Chrome on macOS holds animation frames at 60 Hz. Dropped frames and in-page frame-work percentiles are in the table; in-page timing can miss work a library defers past its frame.
  6. 6Scenes match on data, not decoration: KCQ and KLineChart also draw their legends and extremum labels, Lightweight Charts and ECharts their defaults.

This run

Machine
Apple M4 Pro · 48 GB · darwin arm64
Graphics
ANGLE (Apple, ANGLE Metal Renderer: Apple M4 Pro, Unspecified Version)
Browser
Chrome 155.0.8059.85, headless
Viewport
1180 × 640 at 2× pixel ratio
Versions
@363045841yyt/klinechart-core 0.11.0-alpha.9 · lightweight-charts 5.2.1 · echarts 6.1.0 · klinecharts 10.1.0
KCQ source
8f5f1e4f

Every scenario

LibraryRendererMAsVisible barsMain thread, ms/frameRound range, msFrame work P50, msFrame work P99, msDropped frames
KLineChartCanvas2D51530.640.61–0.691.001.400%
KLineChartQuantCanvas2D51520.930.91–0.951.802.100%
Lightweight ChartsCanvas2D51510.930.79–1.101.502.600%
KLineChartQuantWebGPU51521.731.52–1.812.303.700%
KLineChartQuantWebGL251522.341.80–2.613.104.200%
Apache EChartsCanvas2D51522.932.72–3.193.604.700%
Lightweight ChartsCanvas2D54500.960.77–1.301.703.000%
KLineChartCanvas2D54521.030.88–1.220.901.400%
KLineChartQuantCanvas2D54511.281.09–2.001.904.000%
KLineChartQuantWebGL254511.761.50–2.002.404.300%
KLineChartQuantWebGPU54511.771.11–2.122.104.000%
Apache EChartsCanvas2D54504.664.53–4.845.306.000%
KLineChartQuantCanvas2D51,1221.261.18–1.352.102.800%
Lightweight ChartsCanvas2D51,1211.280.96–1.571.803.100%
KLineChartQuantWebGL251,1221.541.32–2.002.104.000%
KLineChartCanvas2D51,1231.681.55–1.840.951.400%
KLineChartQuantWebGPU51,1222.171.88–2.302.704.600%
Apache EChartsCanvas2D51,1192.872.82–2.913.504.200%
KLineChartCanvas2D121530.950.87–1.021.101.400%
Lightweight ChartsCanvas2D121511.240.84–1.481.803.200%
KLineChartQuantCanvas2D121521.250.95–1.631.903.700%
KLineChartQuantWebGL2121521.491.32–1.702.103.900%
KLineChartQuantWebGPU121521.641.10–1.882.104.000%
Apache EChartsCanvas2D121523.423.27–3.564.004.800%
KLineChartQuantWebGPU124511.201.17–1.241.902.400%
KLineChartQuantCanvas2D124511.321.24–1.381.902.700%
Lightweight ChartsCanvas2D124501.360.95–1.691.803.600%
KLineChartCanvas2D124521.391.16–1.631.001.400%
KLineChartQuantWebGL2124511.631.50–1.812.204.000%
Apache EChartsCanvas2D124505.405.32–5.446.106.900%
KLineChartQuantWebGPU121,1221.351.33–1.412.002.600%
Lightweight ChartsCanvas2D121,1211.361.29–1.402.102.900%
KLineChartQuantWebGL2121,1221.701.53–1.882.404.200%
KLineChartQuantCanvas2D121,1222.071.89–2.172.704.600%
KLineChartCanvas2D121,1232.212.14–2.360.901.400%
Apache EChartsCanvas2D121,1194.744.54–4.885.506.400%

Other hardware gives other numbers. The harness is open source: run it yourself.

Put this speed in your product.

Open source under Apache-2.0. Opens in your browser, no account needed.