Skip to content
python.financial
Tools tested

Tools measured in this benchmark

Open a tool page for its code examples, strengths, and limits. Exact versions are listed in the technical details.

Warm runtime by ordered bar count

Median wall-clock time to construct the engine, process events, record position state, and extract fills. Lower is faster. Runtime uses a logarithmic scale.

What this means

Direct order processing and full event engines scale differently

LEAN and VectorBT PRO have the lowest medians in this normalized in-process order workload. NautilusTrader, Backtrader, and RQAlpha include progressively broader engine lifecycles, so the result should be read with the runner boundaries in the technical details.

Technical details

See exactly how the result was produced

Exact values

Input barsEventsBacktraderNautilusTraderQuantConnect LEANRQAlphaVectorBT PRO
1K1,02045.24 ms34.90 ms960 µs237.11 ms6.35 ms
10K10,200448.42 ms168.95 ms3.20 ms2,296.60 ms7.24 ms
100K102,0004,486.25 ms1,554.62 ms47.67 ms23,060.39 ms15.85 ms

Environment

  • Apple M3, 8 logical cores, 24 GB RAM
  • macOS 26.5.2, arm64
  • CPython 3.11.8 and 3.12.9, plus .NET 10
  • Backtrader 1.9.78.123, NautilusTrader 1.221.0
  • RQAlpha 6.4.0, VectorBT PRO 2025.3.1
  • QuantConnect LEAN commit 985ef30

Procedure

  • 1K, 10K, and 100K synthetic minute bars
  • One position-state record per bar
  • 20 to 2,000 next-open fills
  • 2 warmups and 5 measured repetitions
  • Every state, fill, and final equity checked

Scope

Events are normalized at the strategy boundary. The workload records bar-level position state and completed fills. It does not equate framework-specific clocks, venue messages, order status vocabularies, persistence, or live connectivity.

Peak RSS was not measured consistently. LEAN uses its public in-process algorithm, security, order-fill, and portfolio components. This is not the complete LEAN launcher. VectorBT PRO processes the order stream directly with Portfolio.from_orders.

Reproduce and inspect

The downloadable files preserve the measured values, available result detail, environment record, and checksums.

See the editorial process for the publication standard.

Choose which optional services may run. You can change these settings at any time.