Skip to content

Flat growth benchmarks ​

63 of 63 cases match Python Prophet.

Each case runs the same input through Effect Prophet and Python Prophet 1.4.0, then compares every forecast row, the trend, each component and the fitted noise. A case matches when all of them agree within its tolerances, and only matching cases are timed.

Each case's dot shows its result: matches, matches with internal differences flagged, intentional difference, doesn't match. Hover over a dot for details.

How to read the tables:

  • Effect output and Python output are each library's final forecast value. Open a case to see every row side by side.
  • Largest difference is the biggest gap between the two forecasts, as a share of the input data's range.
  • Effect time and Python time are the median time for the timed step, usually fitting and predicting. Open a case for every step, including first-run and save/load times.
About this run
  • Run 2026-10-20T171807-628Z-27b7ec98 on 2026-10-20, commit 27b7ec9
  • Both libraries ran in linux/arm64 containers on Apple M4 Pro
  • effect-prophet 0.0.0
  • effect 4.0.0
  • prophet 1.4.0
  • Full benchmark report

Timings come from one machine and describe this workload only. They are not a general speed ranking. Where Python is faster, it is often because Python runs Stan's optimizer as compiled C++, while Effect Prophet runs the same algorithm as WebAssembly with narrower vector instructions. The gap is widest for Newton's method on short histories with many parameters.

Country holiday calendars ​

Pinned country calendars, matching explicit-event controls, dynamic future years and portable saved models. Known-gap opt-in is partial provider output, not a completeness guarantee.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
US holidays, additive96 rows21.444721.44460.0048%Fit and predict14.2 ms53.4 ms
Explicit US control, additive96 rows21.444721.44460.0048%Fit and predict13.1 ms51.3 ms
US holidays, multiplicative96 rows21.445921.4459< 0.0001%Fit and predict3.50 ms22.2 ms
Explicit US control, multiplicative96 rows21.445921.4459< 0.0001%Fit and predict2.69 ms17.9 ms
Observed spillovers and unseen future names96 rows23.035023.0350< 0.0001%Fit and predict21.9 ms72.7 ms
Deliberately empty country96 rows20.047320.0473< 0.0001%Fit and predict1.68 ms12.6 ms
No-calendar empty control96 rows20.047320.0473< 0.0001%Fit and predict1.43 ms10.9 ms
Singapore estimated-name transition96 rows20.015120.0151< 0.0001%Fit and predict19.9 ms70.3 ms
India with explicit known-gap opt-in96 rows20.051020.0510< 0.0001%Fit and predict4.03 ms20.5 ms
Country, custom events and mixed features96 rows20.745120.74500.00062%Fit and predict17.5 ms62.1 ms
SE calendar, 730 training rows730 rows20.002620.0026< 0.0001%Fit7.69 ms23.2 ms
SE calendar, 2190 training rows2190 rows20.003320.0033< 0.0001%Fit16.3 ms44.9 ms
CN calendar, 730 training rows730 rows20.004820.0048< 0.0001%Fit7.47 ms27.2 ms
CN calendar, 2190 training rows2190 rows20.004420.00440.0082%Fit27.6 ms85.9 ms
Sweden with a smaller prediction batch2190 rows20.003320.0033< 0.0001%Fit16.6 ms44.8 ms
No-calendar control, 730 training rows / 512 prediction rows730 rows20.012120.0121< 0.0001%Fit3.27 ms9.05 ms
Explicit SE events, 730 training rows / 512 prediction rows730 rows20.002620.0026< 0.0001%Fit6.72 ms20.1 ms
Explicit CN events, 730 training rows / 512 prediction rows730 rows20.004820.0048< 0.0001%Fit5.94 ms20.6 ms
No-calendar control, 2,190 training rows / 512 prediction rows2190 rows20.012120.0121< 0.0001%Fit7.13 ms16.7 ms
Explicit SE events, 2,190 training rows / 512 prediction rows2190 rows20.003320.0033< 0.0001%Fit13.1 ms40.6 ms
Explicit CN events, 2,190 training rows / 512 prediction rows2190 rows20.004420.00440.0082%Fit22.9 ms84.9 ms
No-calendar control, 2,190 training rows / 32 prediction rows2190 rows20.012120.0121< 0.0001%Fit7.72 ms18.4 ms
Explicit SE events, 2,190 training rows / 32 prediction rows2190 rows20.003320.0033< 0.0001%Fit11.8 ms41.8 ms

Default settings ​

fit(history, { growth: "flat" }) against Prophet(growth="flat").fit(df) with nothing else set. Each library decides on its own which seasonal patterns to use.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Defaults, steady level96 rows35.002535.0025< 0.0001%Fit and predict1.86 ms11.4 ms
Defaults, weekly pattern96 rows35.002535.0025< 0.0001%Fit and predict104 ms395 ms
Defaults, negative values96 rows-34.9975-34.9975< 0.0001%Fit and predict1.82 ms12.1 ms

Steady levels ​

A single constant level with no seasonal patterns: noisy, perfectly constant, below zero, and every row on the same date. Each runs with both target scalings.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Noisy level, absmax scaling96 rows35.001935.0019< 0.0001%Fit1.78 ms7.40 ms
Noisy level, minmax scaling96 rows35.001535.0015< 0.0001%Fit3.89 ms20.0 ms
Perfectly constant, absmax scaling96 rows35.000035.00000Fit1.16 ms3.10 ms
Perfectly constant, minmax scaling96 rows35.000035.00000Fit1.16 ms3.03 ms
Negative level, absmax scaling96 rows-34.9989-34.9989< 0.0001%Fit1.91 ms7.63 ms
Negative level, minmax scaling96 rows-34.9985-34.9985< 0.0001%Fit3.88 ms19.8 ms
Every row on the same date, different values3 rows4.32864.32890.0059%Fit888 µs5.74 ms
Every row on the same date, same value3 rows2.00002.00000Fit530 µs2.86 ms

Seasonality, events and regressors ​

Weekly patterns, events and regressors on a flat trend: with a switchable multiplicative weekly pattern at full length and cut to the history lengths cross-validation uses, with every effect additive, and with regressors that move almost or exactly in step with the level or the yearly pattern.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Weekly pattern, absmax scaling96 rows35.003935.0039< 0.0001%Fit155 ms603 ms
Weekly pattern, minmax scaling96 rows35.003935.0039< 0.0001%Fit4.23 ms20.4 ms
Mixed effects, minmax scaling96 rows35.028335.0283< 0.0001%Fit and predict1.41 ms12.4 ms
Mixed effects, absmax scaling96 rows35.012735.0127< 0.0001%Fit1.58 ms7.92 ms
Mixed effects, eight months, minmax scaling256 rows19.530519.5305< 0.0001%Fit and predict2.23 ms13.7 ms
Additive effects, minmax scaling96 rows35.012735.0127< 0.0001%Fit and predict4.67 ms26.9 ms
Additive effects, eight months, minmax scaling256 rows28.919628.9196< 0.0001%Fit and predict2.12 ms13.3 ms
Mixed effects, both libraries on default settings96 rows35.001235.01270.073%Fit and predict3.17 ms48.4 ms
Regressors that track other effects730 rows56.975356.9753< 0.0001%Fit and predict5.42 ms29.6 ms
Mixed effects, eight months, absmax scaling256 rows28.919628.9196< 0.0001%Fit3.82 ms8.99 ms
First 63 days, absmax scaling63 rows24.082624.0826< 0.0001%Fit2.24 ms7.62 ms
First 63 days, minmax scaling63 rows7.17987.1798< 0.0001%Fit2.21 ms7.61 ms
First 70 days, absmax scaling70 rows24.079524.0795< 0.0001%Fit2.10 ms7.44 ms
First 70 days, minmax scaling70 rows7.17187.1718< 0.0001%Fit2.04 ms7.85 ms
First 77 days, absmax scaling77 rows24.074624.0746< 0.0001%Fit2.52 ms7.51 ms
First 77 days, minmax scaling77 rows7.15947.1594< 0.0001%Fit2.16 ms8.16 ms
First 225 days, absmax scaling225 rows34.996034.9960< 0.0001%Fit3.48 ms8.67 ms
First 225 days, minmax scaling225 rows34.989134.9891< 0.0001%Fit3.17 ms8.79 ms
First 232 days, absmax scaling232 rows34.993034.9930< 0.0001%Fit2.98 ms8.86 ms
First 232 days, minmax scaling232 rows34.980734.9807< 0.0001%Fit3.20 ms8.89 ms

Uncertainty ranges ​

Both libraries simulate possible futures with random draws, so individual simulated values never match. Each range must still match Python's within the variation expected from that many draws.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Country calendar uncertainty replay96 rows21.444721.44460.0048%Simulate uncertainty318 µs14.8 ms
Defaults, ranges with a weekly pattern96 rows35.002535.0025< 0.0001%Simulate uncertainty4.48 ms125 ms
Ranges with mixed effects96 rows35.028335.0283< 0.0001%Simulate uncertainty1.10 ms73.6 ms
Samples, eight months256 rows19.530519.5305< 0.0001%Simulate uncertainty1.21 ms22.3 ms

Cross-validation and choosing settings ​

Rolling-origin cross-validation, metrics, baselines, settings search and a final holdout check on flat models.

CaseInputEffect outputPython outputLargest differenceTimed stepEffect timePython time
Cross-validation and metrics96 rows24.074624.0746< 0.0001%Cross-validate6.50 ms46.1 ms
Cross-validation with ranges96 rows24.074624.0746< 0.0001%Cross-validate with ranges7.10 ms60.1 ms
Choosing settings and a final holdout96 rows24.074624.0746< 0.0001%Search settings13.1 ms150 ms
Cross-validation, eight months256 rows34.993034.9930< 0.0001%Cross-validate6.39 ms39.8 ms
Cross-validation with ranges, eight months256 rows34.993034.9930< 0.0001%Cross-validate with ranges8.02 ms46.5 ms

Inspired by Prophet from Meta. Not affiliated with Meta.