Skip to Content
OchreML
Architecture & Benchmarks

Multi-Hardware Benchmarks

Real benchmark results for OchreML v0.3.7a1 vs. scikit-learn 1.6.1 on 4-core CPU and Dual-GPU CUDA environments.

All numbers below come directly from OchreML v0.3.7a1 benchmark runs against scikit-learn 1.6.1 on Linux (x86_64, 4 CPU cores) in two hardware profiles:

  • CPU 4c (cpu_4c): 4-core CPU-only environment (device="auto" resolves to "cpu"), Python 3.13.18.
  • CUDA 2xGPU (cuda_2gpu): 4-core host + 2 NVIDIA GPUs (device="auto" resolves to "cuda:0,1" / cuda:all), Python 3.13.16. (*≧ω≦*)

Executive Summary

SuiteHardwarePassedComparedOchreML WinsWin RateMedian SpeedupMean SpeedupMax Speedup
Classical MLCPU 4c62 / 636262100.0%4.03x9.89x103.05x
Classical MLCUDA 2xGPU62 / 63625588.7%3.14x7.32x75.58x
Preprocessing & UtilsCPU 4c18 / 18181583.3%1.80x2.44x7.91x
Preprocessing & UtilsCUDA 2xGPU18 / 18181583.3%1.54x2.03x4.89x

On both environments, 1 of 63 modules (RadiusNeighborsClassifier) had no scikit-learn baseline comparison because scikit-learn 1.6.1 rejected outlier_label=0.0 (float) with InvalidParameterError; OchreML completed fit + predict in 1.50 ms (cpu_4c) and 2.78 ms (cuda_2gpu).

Classical ML — CPU 4c Highlights (Total Fit + Predict Time)

Representative results across all 5 estimator families on cpu_4c (100% win rate across all 62 comparable estimators):

EstimatorFamilyShapeOchreML Totalsklearn TotalTotal SpeedupScore Parity (score_diff)
OPTICSCluster(350, 8)3.67 ms378.55 ms103.05x—
GammaRegressorGLM(1200, 12)0.87 ms71.16 ms82.04x0.0001
PoissonRegressorGLM(1200, 12)0.98 ms43.76 ms44.45x0.0000
IsolationForestEnsemble(1500, 12)2.72 ms109.60 ms40.37x—
TweedieRegressorGLM(1200, 12)1.06 ms40.83 ms38.70x0.0003
TruncatedSVDDecomp(3200, 20)2.65 ms76.59 ms28.95x—
KernelRidgeKernel(280, 12)5.69 ms133.07 ms23.37x0.0000
AdaBoostClassifierEnsemble(280, 12)4.83 ms93.35 ms19.33x0.0000
ExtraTreesClassifierEnsemble(1200, 12)9.97 ms147.38 ms14.78x0.0033
QuantileRegressorGLM(280, 12)10.47 ms122.43 ms11.69x0.0000
RidgeLinear(3200, 20)1.16 ms11.91 ms10.25x0.0000
SpectralClusteringCluster(350, 8)15.07 ms150.85 ms10.01x—
RidgeClassifierLinear(3200, 20)1.44 ms14.29 ms9.93x0.0000
LinearRegressionLinear(3200, 20)3.23 ms26.65 ms8.26x0.0000
HuberRegressorGLM(1200, 12)1.85 ms13.50 ms7.31x0.0000
GradientBoostingRegressorEnsemble(280, 12)15.91 ms106.95 ms6.72x0.0019
KMeansCluster(1500, 12)8.45 ms54.92 ms6.50x—
RandomForestClassifierEnsemble(1200, 12)33.97 ms217.78 ms6.41x0.0000
GaussianProcessClassifierGP(128, 8)1.98 ms10.33 ms5.22x0.0000
GaussianMixtureMixture(1500, 12)6.53 ms33.79 ms5.17x—
PCADecomp(3200, 20)3.28 ms14.41 ms4.39x—
LogisticRegressionLinear(3200, 20)11.95 ms36.64 ms3.07x0.0000
SVCSVM(280, 12)3.84 ms8.68 ms2.26x0.0000
KNeighborsClassifierNeighbors(1200, 12)9.34 ms17.65 ms1.89x0.0000
HistGradientBoostingRegressorEnsemble(3200, 20)191.56 ms282.97 ms1.48x0.0052
MLPClassifierNeural Net(1200, 12)359.32 ms439.01 ms1.22x0.0100

Classical ML — CUDA 2xGPU (cuda:0,1) Highlights

Run on larger dataset shapes (3x larger sample sizes on GPU profile) with device="auto" dispatching to dual GPUs (cuda:0,1):

EstimatorFamilyShapeOchreML Totalsklearn TotalTotal SpeedupScore Parity (score_diff)
GammaRegressorGLM(3200, 12)1.28 ms96.65 ms75.58x0.0001
OPTICSCluster(800, 8)11.41 ms742.37 ms65.09x—
IsolationForestEnsemble(4000, 12)2.60 ms95.82 ms36.87x—
TweedieRegressorGLM(3200, 12)1.43 ms45.82 ms31.97x0.0002
PoissonRegressorGLM(3200, 12)1.38 ms38.32 ms27.75x0.0000
GradientBoostingClassifierEnsemble(640, 12)36.61 ms589.95 ms16.12x0.0063
AdaBoostClassifierEnsemble(640, 12)7.22 ms112.99 ms15.64x0.0000
GradientBoostingRegressorEnsemble(640, 12)12.55 ms182.06 ms14.51x0.0003
TruncatedSVDDecomp(9600, 32)4.16 ms46.88 ms11.26x—
QuantileRegressorGLM(640, 12)12.30 ms96.33 ms7.83x0.0000
ExtraTreesClassifierEnsemble(3200, 12)17.35 ms134.65 ms7.76x0.0088
LinearDiscriminantAnalysisDiscriminant(9600, 32)4.35 ms29.25 ms6.73x0.0000
KernelRidgeKernel(640, 12)22.22 ms146.23 ms6.58x0.0000
RidgeClassifierLinear(9600, 32)2.81 ms17.30 ms6.15x0.0000
SpectralClusteringCluster(800, 8)37.83 ms228.61 ms6.04x—
LinearRegressionLinear(9600, 32)5.77 ms34.04 ms5.90x0.0000
RidgeLinear(9600, 32)2.35 ms12.65 ms5.39x0.0000
GaussianMixtureMixture(4000, 12)8.59 ms40.60 ms4.73x—
RandomForestClassifierEnsemble(3200, 12)69.91 ms288.22 ms4.12x0.0013
KMeansCluster(4000, 12)21.01 ms63.81 ms3.04x—
KNeighborsRegressorNeighbors(3200, 12)21.85 ms58.18 ms2.66x0.0000
PCADecomp(9600, 32)6.58 ms14.59 ms2.22x—

On small-to-medium matrices (N under 10k rows), PCIe host-to-device transfer and dual-GPU synchronization add ~1–2 ms per call. For tiny datasets or iterative algorithms with small batches (OneClassSVM, AgglomerativeClustering), explicitly setting device="cpu" can outperform multi-GPU dispatch.

Preprocessing, Feature Extraction, Selection & Metrics

Complete 18-module comparison across cpu_4c and cuda_2gpu:

ModuleCategoryCPU 4c OchreMLCPU 4c sklearnCPU 4c Speedup2xGPU OchreML2xGPU sklearn2xGPU Speedup
PowerTransformerPreprocessing5.87 ms46.45 ms7.91x10.93 ms53.41 ms4.89x
KNNImputerImpute2.44 ms10.55 ms4.32x2.01 ms8.58 ms4.27x
QuantileTransformerPreprocessing1.74 ms6.74 ms3.87x1.90 ms8.36 ms4.40x
RobustScalerPreprocessing2.07 ms7.95 ms3.84x7.14 ms22.56 ms3.16x
CountVectorizerText FE13.53 ms44.51 ms3.29x21.11 ms63.82 ms3.02x
SelectKBestSelection2.06 ms6.47 ms3.14x3.36 ms7.13 ms2.12x
StratifiedKFoldModel Selection1.70 ms5.06 ms2.98x2.04 ms2.52 ms1.24x
VarianceThresholdSelection1.38 ms3.06 ms2.23x2.83 ms4.79 ms1.69x
NormalizerPreprocessing0.71 ms1.29 ms1.83x1.51 ms1.90 ms1.26x
TfidfVectorizerText FE18.30 ms32.34 ms1.77x33.60 ms63.61 ms1.89x
metrics.r2_scoreMetrics1.09 ms1.74 ms1.60x0.98 ms0.96 ms0.98x
PolynomialFeaturesPreprocessing0.96 ms1.31 ms1.36x1.18 ms1.54 ms1.30x
MaxAbsScalerPreprocessing1.16 ms1.56 ms1.35x2.40 ms2.57 ms1.07x
RBFSamplerKernel Approx2.22 ms2.93 ms1.32x2.79 ms4.31 ms1.55x
SimpleImputerImpute2.25 ms2.65 ms1.18x1.90 ms2.89 ms1.52x
MinMaxScalerPreprocessing1.84 ms1.59 ms0.86x2.59 ms2.83 ms1.09x
metrics.accuracy_scoreMetrics1.77 ms1.04 ms0.59x3.88 ms0.82 ms0.21x
StandardScalerPreprocessing4.54 ms2.01 ms0.44x5.73 ms4.59 ms0.80x

On this page