Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Taylor performance follow-up

This report records the preceding Taylor implementation rounds. For the subsequent native PyKEP 3.1.0 and trajectory-gym measurements, see the matched benchmark report.

The follow-up reduces generated coefficient storage, evaluates four-lane Taylor polynomials without copying their histories into scalar workspaces, and shares nominal coefficients across seeded sensitivity directions.

Measurements use Rust 1.88.0 on an Intel Xeon Platinum 8573C, affinity to CPUs 2–5, and the repository’s release profile. B0 is GitHub main at 542158b575ad9d235841d501772c179177d69660. B1 adds the first Taylor patch. The final source adds the accepted follow-up changes. Paired results use three ABBA rounds and seven warmed samples per pass. The ratios are medians of paired round ratios. Host scheduling affects the spread of short timings.

Scalar propagation at requested tolerance 1e-12

The endpoint metric is max(abs(actual - reference) / max(1, abs(reference))). All rows meet the 2e-11 fixed-tolerance gate against the tight DOP853 reference. B0 comparisons use the default crate features for both sides. B1 comparisons enable simd in both builds and call the scalar API here.

Portable build

ModelB1 µsFinal µsB1 speedupB0 speedupScaled endpoint error
kepler3.7404.2850.91×0.99×6.66e-16
cr3bp18.28511.5141.62×1.70×8.60e-15
bcp7.6985.9041.34×1.69×6.94e-16
zoh_kepler4.6374.8050.95×1.10×2.83e-15
zoh_cr3bp10.4249.7501.07×1.68×3.03e-15
zoh_equinoctial13.53014.0260.96×1.07×3.03e-15
solar_sail25.38519.7591.36×1.33×7.11e-15
cartesian_mass9.5008.4411.13×1.87×5.55e-16
cartesian_time8.1206.2771.29×1.64×2.31e-15
equinoctial_mass583.367446.6501.22×2.04×9.21e-14
equinoctial_time516.446437.9091.15×1.94×9.15e-14
ComparisonGeometric meanMedianSlowest ratio
B1 to final1.16×1.15×0.91× (kepler)
B0 to final1.51×1.68×0.99× (kepler)

Native build

ModelB1 µsFinal µsB1 speedupB0 speedupScaled endpoint error
kepler3.0863.2270.95×1.14×6.66e-16
cr3bp19.06910.5452.14×2.21×8.60e-15
bcp8.6425.8161.49×1.41×6.94e-16
zoh_kepler3.7353.7051.01×0.94×2.83e-15
zoh_cr3bp10.0628.4001.16×1.63×3.03e-15
zoh_equinoctial14.66014.2171.03×0.99×3.03e-15
solar_sail25.56719.7161.23×1.37×7.11e-15
cartesian_mass7.8838.4070.91×1.82×5.55e-16
cartesian_time7.6916.4371.24×1.33×2.31e-15
equinoctial_mass582.622498.0641.20×1.98×9.21e-14
equinoctial_time555.152448.8061.18×1.91×9.15e-14
ComparisonGeometric meanMedianSlowest ratio
B1 to final1.20×1.18×0.91× (cartesian_mass)
B0 to final1.47×1.41×0.94× (zoh_kepler)

Complete workload comparisons

Grid errors use analytical Kepler values. BCP batch deltas compare against scalar calls. Jacobian errors cover endpoint, control, and time-grid columns. Both builds enable SIMD.

Portable application workloads

WorkloadB1 µsFinal µsSpeedupMaximum error or delta
kepler_grid366.1869.755.04×1.32e-15
bcp_population_balanced_13448.231741.562.06×1.11e-16
bcp_population_mixed_13835.831914.772.08×1.25e-16
bcp_population_balanced_41508.66849.201.89×1.11e-16
bcp_population_mixed_41651.59825.401.96×1.25e-16
kepler_stm49.5920.412.42×2.55e-15
zoh_jacobian_20414.14219.981.84×4.04e-11
zoh_jacobian_32705.77342.062.12×3.34e-11

Native application workloads

WorkloadB1 µsFinal µsSpeedupMaximum error or delta
kepler_grid49.9142.311.06×1.32e-15
bcp_population_balanced_12781.321364.361.91×0.00e+00
bcp_population_mixed_12863.751615.071.74×0.00e+00
bcp_population_balanced_41055.61634.361.63×0.00e+00
bcp_population_mixed_41692.33700.402.25×0.00e+00
kepler_stm52.1817.942.86×2.55e-15
zoh_jacobian_20434.88229.001.99×4.04e-11
zoh_jacobian_32657.29342.881.86×3.34e-11

Small scalar confirmations

The focused runs use the same sources with four times as many calls per sample. The native Kepler case remains slower than B1. The default-feature comparison against B0 still shows a gain.

BuildModelB1 µsFinal µsB1 speedup
portablekepler3.9134.0200.98×
portablezoh_kepler5.2165.0641.02×
portablezoh_equinoctial13.87212.7801.09×
nativekepler3.0413.2190.92×
nativecartesian_mass8.7048.6641.00×

Short-arc matched-error sweep

Each configuration meets scaled endpoint error 1e-11 on its fixture. These timings use the fastest tested tolerance from one seven-sample pass per configuration. The paired fixed-tolerance comparisons above give a better view of timing variation.

ModelB1 toleranceFinal toleranceB1 µsFinal µsFinal error
kepler1e-091e-093.8963.4913.07e-12
cr3bp1e-091e-1214.63311.6028.60e-15
bcp1e-091e-097.3675.3051.88e-12
zoh_kepler1e-091e-093.4853.5633.28e-12
zoh_cr3bp1e-091e-128.30210.5613.03e-15
zoh_equinoctial1e-091e-0911.10310.8722.09e-13
solar_sail1e-091e-1213.74219.6737.11e-15
cartesian_mass1e-091e-095.9778.4495.55e-16
cartesian_time1e-091e-096.1085.1772.31e-15
equinoctial_mass1e-091e-12374.187590.8889.21e-14
equinoctial_time1e-091e-12314.934420.8129.15e-14

CPU build comparison

Both columns use the final source and the simd feature. The native column uses -C target-cpu=native.

WorkloadPortable µsNative µsPortable / native
kepler_grid80.9545.041.94×
bcp_population_balanced_11814.811380.001.32×
bcp_population_mixed_11953.421385.151.42×
kepler_stm21.5117.131.29×
zoh_jacobian_20241.96206.801.08×

Portable mixed sensitivity seed widths

WorkloadB1 µsFinal µsSpeedupFinal error
kepler_stm_w122.0520.431.42×1.67e-15
kepler_stm_w14109.6841.522.65×2.39e-15
kepler_stm_w21173.19111.571.58×2.39e-15
kepler_stm_w433.1517.571.78×2.16e-15
kepler_stm_w670.8422.533.14×2.16e-15
kepler_stm_w755.2230.281.89×2.16e-15

Cumulative portable grid and STM

WorkloadB0 µsFinal µsSpeedupFinal error
kepler_grid1061.5974.2414.62×1.32e-15
kepler_stm58.8921.252.72×2.55e-15

Cumulative native grid and STM

WorkloadB0 µsFinal µsSpeedupFinal error
kepler_grid787.7842.4418.89×1.32e-15
kepler_stm44.2217.792.49×2.55e-15

Complete Python ZOH history calls

WorkloadB1 µsFinal µsSpeedupFinal error
zoh_history_1016.248.971.81×6.11e-16
zoh_history_10011490.78761.221.96×7.22e-16
zoh_history_101130.6964.762.22×6.66e-16
zoh_history_25.334.551.17×6.11e-16

fcmaes objective replay

The same 1,024 candidates were evaluated in the same order. Times include construction, propagation, and scoring.

ObjectiveWorkersB1 µsFinal µsSpeedupMaximum score/residual delta
bcp14255.432573.561.65×1.11e-16
zoh_kepler133630.6229975.511.12×0.00e+00
bcp41784.451038.341.72×1.11e-16
zoh_kepler49870.469796.291.01×0.00e+00

Each optimizer cell uses seeds 11, 19, and 42 and 4,096 evaluations per run. These short campaigns compare wall time and final objectives. Time-to-target records are in the raw data.

ObjectiveWorkersMedian B1 msMedian final msLargest final objective deltaTarget hits B1 / final
bcp121.7113.373.12e-193 / 3
zoh_kepler1110.62114.270.00e+000 / 0
bcp442.2619.453.12e-193 / 3
zoh_kepler468.3568.340.00e+000 / 0

Python calls at matched endpoint accuracy

PyKEP 3.0.1 with heyoka.py 7.10.1 reuses the compiled integrator. Both sides include Python calls. Rows select the fastest tested tolerance at scaled endpoint error 1e-11.

ModelPyKEP µsRust Taylor µsRust / PyKEP
kepler4.0233.4730.86×
cr3bp4.8669.6821.99×
bcp4.5645.4691.20×
zoh_kepler5.4305.4461.00×
zoh_cr3bp5.6817.9131.39×
zoh_equinoctial8.69412.3871.42×
solar_sail7.40322.4813.04×
cartesian_mass4.6538.6181.85×
cartesian_time4.1356.1291.48×
equinoctial_mass622.882508.3830.82×
equinoctial_time554.198413.1260.75×

See the comparison guide for reproduction commands. The raw measurements are in the measurement archive attached to the 0.1.5 release. Comparison guide