Skip to content

Benchmarks

These shared native CPU results come from the R comparison harness; they do not measure WebAssembly. The WASM binding runs single-threaded, so the parallel column is reference data for the native core, not WASM performance. This LOESS implementation has no GPU backend.

Runtime and speedup comparison of stats::loess with serial and parallel rfastloess across benchmark categories

The table uses mean timings. Speedups in parentheses are relative to base R’s stats::loess; values above 1× are faster than R.

ScenarioRrfastloess (serial)rfastloess (parallel)
clustered42.92 ms2.40 ms (17.9×)1.82 ms (23.6×)
constant_y27.78 ms2.07 ms (13.4×)1.62 ms (17.1×)
extreme_outliers27.74 ms4.35 ms (6.4×)4.21 ms (6.6×)
financial_10001.48 ms0.56 ms (2.7×)0.67 ms (2.2×)
financial_5000.70 ms0.25 ms (2.8×)0.66 ms (1.1×)
financial_500013.36 ms2.27 ms (5.9×)1.71 ms (7.8×)
fraction_0.058.22 ms2.70 ms (3.0×)4.14 ms (2.0×)
fraction_0.113.74 ms2.54 ms (5.4×)2.42 ms (5.7×)
fraction_0.224.19 ms2.87 ms (8.4×)2.25 ms (10.7×)
fraction_0.332.65 ms3.26 ms (10.0×)3.48 ms (9.4×)
fraction_0.552.39 ms2.95 ms (17.8×)3.11 ms (16.8×)
fraction_0.6775.48 ms2.53 ms (29.9×)2.57 ms (29.3×)
genomic_10001.34 ms0.61 ms (2.2×)0.89 ms (1.5×)
genomic_1000005 652.21 ms51.02 ms (110.8×)33.27 ms (169.9×)
genomic_500012.51 ms2.79 ms (4.5×)2.64 ms (4.7×)
high_noise70.11 ms3.38 ms (20.7×)2.45 ms (28.6×)
iterations_122.75 ms1.66 ms (13.7×)2.87 ms (7.9×)
iterations_1022.53 ms5.19 ms (4.3×)4.45 ms (5.1×)
iterations_223.47 ms2.28 ms (10.3×)2.68 ms (8.8×)
iterations_323.28 ms2.86 ms (8.1×)2.55 ms (9.1×)
iterations_522.62 ms3.66 ms (6.2×)3.26 ms (6.9×)
large_direct10 066.93 ms20 179.44 ms (0.5×)9 135.54 ms (1.1×)
large_high_fraction14 587.37 ms24.95 ms (584.7×)61.71 ms (236.4×)
large_high_iter8 461.60 ms2 391.07 ms (3.5×)1 099.72 ms (7.7×)
large_interp1 274.90 ms26.95 ms (47.3×)18.88 ms (67.5×)
scale_10001.41 ms0.80 ms (1.8×)4.21 ms (0.3×)
scale_1000046.15 ms5.13 ms (9.0×)8.21 ms (5.6×)
scale_500013.27 ms3.06 ms (4.3×)4.74 ms (2.8×)
scientific_10001.76 ms0.83 ms (2.1×)1.02 ms (1.7×)
scientific_5000.72 ms0.39 ms (1.8×)0.66 ms (1.1×)
scientific_500018.38 ms3.10 ms (5.9×)2.73 ms (6.7×)