Linear growth benchmarks
38 of 40 cases match Python Prophet. 2 are intentional differences, explained below.
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.
- Flagged cases match, but the two libraries stopped their fitting search at slightly different points. The case page shows the internal numbers.
About this run
- Run
2026-10-20T170110-379Z-27b7ec98on 2026-10-20, commit27b7ec9 - Both libraries ran in
linux/arm64containers 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.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| US holidays, additive | 96 rows | 21.5688 | 21.5688 | < 0.0001% | Fit and predict | 5.01 ms | 28.2 ms |
| Explicit US control, additive | 96 rows | 21.5688 | 21.5688 | < 0.0001% | Fit and predict | 3.97 ms | 22.4 ms |
| US holidays, multiplicative | 96 rows | 21.5778 | 21.5778 | < 0.0001% | Fit and predict | 4.93 ms | 28.5 ms |
| Explicit US control, multiplicative | 96 rows | 21.5778 | 21.5778 | < 0.0001% | Fit and predict | 4.66 ms | 25.8 ms |
| Observed spillovers and unseen future names | 96 rows | 33.9385 | 33.9385 | < 0.0001% | Fit and predict | 5.50 ms | 27.2 ms |
Default settings
fit(history) against Prophet().fit(df) with no options on either side. Each library decides on its own which seasonal patterns to use.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Defaults, one month of daily data | 32 rows | 30.7933 | 30.7933 | < 0.0001% | Fit and predict | 17.9 ms | 66.6 ms |
| Defaults, eight months of daily data | 256 rows | 139.9296 | 139.9278 | 0.0018% | Fit and predict | 26.2 ms | 89.5 ms |
| Defaults, irregular dates | 192 rows | 108.5108 | 108.4320 | 0.11% | Fit and predict | 6.45 ms | 16.7 ms |
Trends and changepoints
Straight-line and bending trends with automatic or hand-picked changepoints, plus unsorted rows, repeated timestamps and both target scalings.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Predicting from a known straight line | 256 rows | 43.7804 | 43.7804 | < 0.0001% | Predict | 304 µs | 2.67 ms |
| One hand-picked changepoint | 32 rows | 28.5156 | 28.5156 | < 0.0001% | Fit and predict | 1.65 ms | 15.0 ms |
| Sorted rows, hand-picked changepoint | 96 rows | 34.4145 | 34.4145 | < 0.0001% | Fit | 4.01 ms | 20.9 ms |
| Sorted rows, automatic changepoints | 96 rows | 34.4258 | 34.4258 | < 0.0001% | Fit | 30.9 ms | 107 ms |
| Shuffled rows, hand-picked changepoint | 96 rows | 34.4145 | 34.4145 | < 0.0001% | Fit | 4.03 ms | 20.7 ms |
| Shuffled rows, automatic changepoints | 96 rows | 34.4258 | 34.4258 | < 0.0001% | Fit | 31.5 ms | 107 ms |
| Repeated timestamps, hand-picked changepoint | 96 rows | 17.8737 | 17.8737 | < 0.0001% | Fit | 3.96 ms | 19.8 ms |
| Repeated timestamps, automatic changepoints | 96 rows | 17.9039 | 17.9039 | 0.0013% | Fit | 26.2 ms | 83.8 ms |
| Values far from zero, absmax scaling | 96 rows | 113.0935 | 113.0935 | < 0.0001% | Fit and predict | 5.44 ms | 26.1 ms |
| Values far from zero, minmax scaling | 96 rows | 113.0928 | 113.0928 | < 0.0001% | Fit and predict | 5.28 ms | 26.7 ms |
Seasonality, events and regressors
Custom and switchable seasonal patterns, events with windows, extra regressors, and additive and multiplicative effects mixed together.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Weekly pattern on irregular dates | 192 rows | 108.5119 | 108.5118 | < 0.0001% | Fit and predict | 1.49 ms | 11.3 ms |
| Two switchable weekly patterns | 256 rows | 139.4380 | 139.4353 | 0.0028% | Fit and predict | 3.11 ms | 15.7 ms |
| Events with windows | 96 rows | 54.2821 | 54.2821 | < 0.0001% | Fit and predict | 6.77 ms | 33.1 ms |
| Four regressors | 256 rows | 138.7457 | 138.7426 | 0.0032% | Fit and predict | 2.96 ms | 13.6 ms |
| Everything at once, small | 24 rows | 21.2025 | 21.2025 | < 0.0001% | Fit and predict | 1.65 ms | 16.6 ms |
| Everything at once, two years | 768 rows | 54.2706 | 54.2657 | 0.015% | Fit and predict | 12.9 ms | 43.1 ms |
| Additive and multiplicative together | 96 rows | 44.5183 | 44.5183 | < 0.0001% | Fit and predict | 4.91 ms | 31.8 ms |
| Repeated timestamps with features | 96 rows | 18.2191 | 18.2200 | 0.017% | Fit | 32.6 ms | 112 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.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Defaults, three years of ranges | 1095 rows | 611.2687 | 611.3156 | 0.011% | Simulate uncertainty | 71.3 ms | 379 ms |
| Defaults, ranges on irregular dates | 192 rows | 108.5108 | 108.4320 | 0.15% | Simulate uncertainty | 11.9 ms | 158 ms |
| Samples with repeated timestamps | 96 rows | 17.9039 | 17.9039 | 0.0013% | Simulate uncertainty | 498 µs | 16.9 ms |
| Ranges over past dates | 96 rows | 110.0950 | 110.0950 | < 0.0001% | Simulate uncertainty | 327 µs | 20.3 ms |
| Samples for one future date | 96 rows | 110.0819 | 110.0819 | < 0.0001% | Simulate uncertainty | 208 µs | 17.2 ms |
| Ranges with mixed effects | 96 rows | 45.1353 | 45.1353 | < 0.0001% | Simulate uncertainty | 398 µs | 26.0 ms |
| Samples with mixed effects | 96 rows | 45.1353 | 45.1353 | < 0.0001% | Simulate uncertainty | 726 µs | 68.6 ms |
Cross-validation and choosing settings
Rolling-origin cross-validation, metrics, baselines, settings search and a final holdout check.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Cross-validation and metrics | 96 rows | 108.5823 | 108.5823 | < 0.0001% | Cross-validate | 9.52 ms | 75.7 ms |
| Cross-validation with ranges | 96 rows | 108.5823 | 108.5823 | < 0.0001% | Cross-validate with ranges | 9.74 ms | 76.9 ms |
| Choosing settings and a final holdout | 96 rows | 108.5823 | 108.5823 | < 0.0001% | Search settings | 20.5 ms | 164 ms |
| Search with a failing candidate | 96 rows | 108.5823 | 108.5823 | < 0.0001% | Search settings | 20.5 ms | 156 ms |
| Cross-validation with repeated timestamps | 96 rows | 15.5221 | 15.5221 | < 0.0001% | Cross-validate | 5.76 ms | 60.4 ms |
Intentional differences
Inputs where we deliberately behave differently from Python Prophet. These cases are expected to fail the comparison.
| Case | Input | Effect output | Python output | Largest difference | Timed step | Effect time | Python time |
|---|---|---|---|---|---|---|---|
| Every row on the same date, different values | 3 rows | FittingError | Optimizer crash | — | — | — | — |
| Every row on the same date, same value | 3 rows | FittingError | NaN forecast | — | — | — | — |