Skip to main content
Version: Next (unreleased)

Xisto vs Rust

Rust's side is the community port polybench-rs: every kernel with fixed-size contiguous arrays (Box<[[f64; N]; M]>), release build with -C target-cpu=native. Xisto's side is the TypeScript port with number[][], the same loops in the same order. Kernel time is PolyBench's own timer around the kernel, the same region in every port; CPU is the whole process's user + system time; memory is peak RSS. LARGE dataset, median of 3 runs (10 for kernels under 50 ms). Every run's array dump hashes the same as the C reference's. Round of main 40cdc16, 14 Nov 2026; kernels marked ² were close in the round and re-measured with the four sides interleaved in one invocation (median of 3 × 10 runs): their kernel times are the interleaved ones.

Xeon E5-2686 v4 (x86-64, 2 vCPUs, AVX2)​

Kernel time: Xisto 21 wins, 9 ties, 0 losses (a tie is within 3%). The winner of each column pair (kernel time, CPU, memory) is in bold when ahead by more than 3%; C is the reference, not scored.

Xeon E5-2686 v4: Rust's time ÷ Xisto's, per kernel (above 1× Xisto is faster)
051015correlation10×covariance9.85×trmm6.55×seidel-2d5.71×doitgen5.40×gramschmidt5.25×2mm4.31×mvt4.17×3mm3.91×syr2k3.78×gemver2.90×lu2.65×ludcmp2.45×deriche2.43×adi2.23×symm1.97×floyd-warshall1.79×syrk1.16×jacobi-2d1.14×nussinov1.12×heat-3d1.12×fdtd-2d²1.01×cholesky1.01×atax²1.00×bicg1.00×durbin²1.00×gesummv1.00×jacobi-1d1.00×trisolv1.00×gemm0.97×

21 of 30 kernels more than 3% faster in Xisto (accent); grey within 3% or slower. The dashed line is 1×, the same time. Every value is in the table below.

Xeon E5-2686 v4: Rust's peak memory ÷ Xisto's, per kernel (above 1× Xisto uses less)
00.511.5jacobi-1d1.22×durbin²1.21×trmm1.02×gesummv1.01×syrk1.01×correlation1.01×atax²1.01×bicg1.01×mvt1.01×seidel-2d1.01×trisolv1.01×gemver1.01×nussinov1.00×jacobi-2d1.00×symm1.00×fdtd-2d²1.00×gemm1.00×gramschmidt1.00×syr2k1.00×floyd-warshall1.00×cholesky1.00×lu1.00×ludcmp1.00×2mm1.00×3mm1.00×covariance1.00×adi1.00×deriche0.99×doitgen0.97×heat-3d0.91×

Peak RSS of each run. The dashed line is 1×, the same memory.

kernelC (ref.) kernelXisto kernelRust kernelratioXisto CPURust CPUXisto memoryRust memoryfaster
2mm2.73 s620 ms2.67 s0.230.65 s2.70 s37.4 MB37.4 MBXisto
3mm4.28 s1.04 s4.07 s0.261.09 s4.11 s53.2 MB53.2 MBXisto
adi12.44 s6.28 s14.03 s0.456.30 s14.05 s32.8 MB32.7 MBXisto
atax²7 ms8 ms8 ms1.000.04 s0.04 s32.4 MB32.6 MBtie
bicg14 ms7 ms7 ms1.000.04 s0.04 s32.5 MB32.7 MBtie
cholesky2.00 s1.98 s2.00 s0.998.04 s32.19 s63.0 MB63.1 MBtie
correlation7.19 s724 ms7.26 s0.100.75 s7.28 s25.8 MB26.0 MBXisto
covariance7.19 s742 ms7.31 s0.100.76 s7.33 s25.9 MB25.9 MBXisto
deriche463 ms165 ms401 ms0.410.27 s0.51 s138.5 MB137.2 MBXisto
doitgen740 ms97 ms524 ms0.190.12 s0.55 s29.0 MB28.0 MBXisto
durbin²4 ms4 ms4 ms1.000.00 s0.00 s1.9 MB2.3 MBtie
fdtd-2d²1.63 s1.62 s1.64 s0.981.68 s1.56 s29.5 MB29.6 MBtie
floyd-warshall18.10 s10.46 s18.75 s0.5610.51 s18.79 s32.0 MB32.1 MBXisto
gemm444 ms434 ms422 ms1.030.46 s0.45 s29.6 MB29.7 MBtie
gemver29 ms10 ms29 ms0.340.04 s0.06 s32.6 MB32.8 MBXisto
gesummv6 ms3 ms3 ms1.000.03 s0.03 s27.7 MB28.0 MBtie
gramschmidt7.21 s1.40 s7.35 s0.191.43 s7.37 s31.4 MB31.5 MBXisto
heat-3d1.88 s1.79 s2.00 s0.891.81 s2.03 s31.2 MB28.5 MBXisto
jacobi-1d1 ms1 ms1 ms1.000.00 s0.00 s1.8 MB2.2 MBtie
jacobi-2d1.30 s1.24 s1.41 s0.881.27 s1.43 s27.9 MB28.0 MBXisto
lu5.50 s2.10 s5.57 s0.388.11 s33.33 s63.0 MB63.1 MBXisto
ludcmp5.24 s2.23 s5.46 s0.418.24 s33.17 s63.0 MB63.1 MBXisto
mvt25 ms6 ms25 ms0.240.04 s0.06 s32.5 MB32.7 MBXisto
nussinov4.13 s4.08 s4.58 s0.894.10 s4.60 s26.0 MB26.1 MBXisto
seidel-2d27.68 s4.85 s27.67 s0.184.87 s27.69 s32.5 MB32.7 MBXisto
symm1.98 s1.12 s2.21 s0.511.14 s2.23 s28.0 MB28.1 MBXisto
syr2k4.24 s1.07 s4.04 s0.271.10 s4.06 s31.4 MB31.5 MBXisto
syrk648 ms553 ms642 ms0.860.57 s0.66 s22.1 MB22.3 MBXisto
trisolv3 ms4 ms4 ms1.000.03 s0.03 s32.5 MB32.7 MBtie
trmm1.79 s275 ms1.80 s0.150.29 s1.81 s18.7 MB19.0 MBXisto

Graviton2 (Neoverse N1, arm64, 2 vCPUs)​

Kernel time: Xisto 21 wins, 9 ties, 0 losses (a tie is within 3%). The winner of each column pair (kernel time, CPU, memory) is in bold when ahead by more than 3%; C is the reference, not scored.

Graviton2: Rust's time ÷ Xisto's, per kernel (above 1× Xisto is faster)
02468trmm6.08×gramschmidt5.97×covariance3.48×correlation3.45×2mm3.17×seidel-2d3.00×lu2.66×doitgen2.50×3mm2.45×syr2k2.31×ludcmp2.06×gemver1.85×mvt1.85×syrk1.79×floyd-warshall1.69×deriche1.47×nussinov1.34×cholesky1.25×adi1.10×heat-3d1.09×symm1.06×fdtd-2d1.02×atax1.00×bicg1.00×durbin1.00×gesummv1.00×jacobi-1d1.00×trisolv1.00×gemm²1.00×jacobi-2d0.98×

21 of 30 kernels more than 3% faster in Xisto (accent); grey within 3% or slower. The dashed line is 1×, the same time. Every value is in the table below.

Graviton2: Rust's peak memory ÷ Xisto's, per kernel (above 1× Xisto uses less)
00.511.5durbin1.46×jacobi-1d1.46×trmm1.02×syrk1.01×gemver1.01×gesummv1.01×atax1.01×seidel-2d1.01×trisolv1.01×mvt1.01×covariance1.01×jacobi-2d1.01×gramschmidt1.01×ludcmp1.00×correlation1.00×nussinov1.00×fdtd-2d1.00×floyd-warshall1.00×bicg1.00×cholesky1.00×lu1.00×2mm1.00×gemm²1.00×symm1.00×syr2k1.00×3mm1.00×adi1.00×deriche0.98×doitgen0.95×heat-3d0.91×

Peak RSS of each run. The dashed line is 1×, the same memory.

kernelC (ref.) kernelXisto kernelRust kernelratioXisto CPURust CPUXisto memoryRust memoryfaster
2mm6.21 s1.68 s5.32 s0.311.71 s5.35 s37.1 MB37.1 MBXisto
3mm10.11 s2.97 s7.27 s0.413.02 s7.30 s53.0 MB52.9 MBXisto
adi12.12 s10.35 s11.42 s0.9110.37 s11.43 s32.5 MB32.4 MBXisto
atax6 ms6 ms6 ms1.000.03 s0.03 s31.9 MB32.2 MBtie
bicg14 ms4 ms4 ms1.000.03 s0.03 s32.1 MB32.2 MBtie
cholesky1.88 s1.58 s1.97 s0.8013.88 s45.50 s62.7 MB62.8 MBXisto
correlation7.55 s2.06 s7.11 s0.292.08 s7.12 s25.4 MB25.5 MBXisto
covariance7.43 s2.05 s7.13 s0.292.06 s7.14 s25.4 MB25.6 MBXisto
deriche330 ms195 ms287 ms0.680.27 s0.35 s139.4 MB136.8 MBXisto
doitgen657 ms209 ms523 ms0.400.23 s0.54 s29.2 MB27.7 MBXisto
durbin3 ms3 ms3 ms1.000.00 s0.00 s1.3 MB1.9 MBtie
fdtd-2d1.78 s1.90 s1.94 s0.981.93 s1.96 s29.1 MB29.2 MBtie
floyd-warshall23.08 s14.01 s23.73 s0.5914.09 s23.78 s31.6 MB31.7 MBXisto
gemm²642 ms633 ms630 ms1.000.67 s0.64 s29.3 MB29.3 MBtie
gemver39 ms20 ms37 ms0.540.05 s0.06 s32.1 MB32.5 MBXisto
gesummv6 ms2 ms2 ms1.000.02 s0.02 s27.3 MB27.6 MBtie
gramschmidt13.25 s2.61 s15.57 s0.172.63 s15.59 s30.9 MB31.1 MBXisto
heat-3d3.50 s3.66 s3.98 s0.923.69 s3.99 s30.7 MB28.0 MBXisto
jacobi-1d1 ms1 ms1 ms1.000.00 s0.00 s1.3 MB1.9 MBtie
jacobi-2d1.96 s1.96 s1.92 s1.021.98 s1.93 s27.4 MB27.6 MBtie
lu12.41 s5.22 s13.90 s0.3817.56 s58.09 s62.7 MB62.8 MBXisto
ludcmp10.48 s5.16 s10.65 s0.4817.78 s54.49 s62.6 MB62.9 MBXisto
mvt35 ms13 ms24 ms0.540.04 s0.05 s32.1 MB32.4 MBXisto
nussinov9.91 s7.72 s10.38 s0.747.73 s10.40 s25.5 MB25.6 MBXisto
seidel-2d20.61 s6.86 s20.55 s0.336.89 s20.56 s32.0 MB32.3 MBXisto
symm4.58 s4.25 s4.52 s0.944.27 s4.54 s27.8 MB27.8 MBXisto
syr2k5.98 s2.74 s6.33 s0.432.77 s6.35 s31.1 MB31.1 MBXisto
syrk2.02 s1.06 s1.90 s0.561.08 s1.92 s21.7 MB22.0 MBXisto
trisolv3 ms3 ms3 ms1.000.02 s0.02 s32.0 MB32.3 MBtie
trmm3.90 s650 ms3.95 s0.160.66 s3.96 s18.2 MB18.6 MBXisto

Notes​

  • atax, durbin, gesummv, jacobi-1d, trisolv run in a few milliseconds; at the timer's millisecond resolution a difference of 1 ms is 15–30%, so they were re-measured interleaved where the round put them apart.
  • jacobi-2d on the Xeon now runs its two sweeps fused one row apart (as heat-3d), and symm on the Graviton2 allocates its rows on 64-byte lines and jams two columns instead of sixteen; both were behind Rust in the round before (main 02c991f: jacobi-2d 1.45 s against 1.40 s, symm 5.05 s against 4.52 s).
  • Rust's arrays are one block per matrix; Xisto's number[][] rows are separate allocations, as in any TypeScript program. The kernels where Xisto wins by 2–10× (2mm, 3mm, correlation, covariance, seidel-2d...) are loop transformations of the compiler, not a different algorithm: the same operations in the same order per element.

Raw output: bench/results/polybench-2026-11-14.