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 asset count

Median wall-clock time for 13 equal-weight rebalances over 260 bars. Lower is faster. Runtime uses a logarithmic scale.

What this means

Native in-process portfolios scale most gently here

VectorBT PRO and LEAN have the lowest framework medians across all three asset counts in this in-memory workload. The fuller Python engines include more strategy, data, or calendar lifecycle and should not be compared as equivalent feature boundaries.

Technical details

See exactly how the result was produced

Exact values

AssetsbtLumibotpysystemtradeRQAlphaVectorBT PROZipline ReloadedQuantConnect LEAN
1011.65 ms481.37 ms30.82 ms295.95 ms6.95 ms127.14 ms1.53 ms
10062.97 ms2,767.91 ms306.34 ms1,349.22 ms9.27 ms450.89 ms7.69 ms
500303.45 ms13,721.02 ms1,519.71 ms6,130.95 ms17.64 ms1,883.76 ms41.59 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
  • bt 1.2.3, Lumibot 3.6.5, pysystemtrade 1.8.2
  • RQAlpha 6.4.0, VectorBT PRO 2025.3.1
  • Zipline Reloaded 3.1.1, QuantConnect LEAN commit 985ef30

Procedure

  • 260 synthetic business-day bars
  • 10, 100, and 500 assets
  • Equal-weight rebalance every 20 bars
  • Whole-share positions, shared cash, zero costs
  • 2 warmups and 5 measured repetitions

Scope

Validation code is not part of the comparison. An independent NumPy implementation checks the expected holdings, cash, and equity. Its timing remains in the full results but is excluded from the chart and table because it is not a portfolio framework.

Peak RSS was not measured consistently. VectorBT PRO reports native cash, value, and assets. LEAN uses public in-process algorithm and portfolio components rather than the complete launcher.

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.

Downloads

Download the data

Download the chart values, detailed results, release details, or file checksums separately.

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