XU XUv0.8.8
中文

Multi-Architecture Cross-Language Benchmarks

Rigorous, reproducible cross-language benchmarks comparing Xu v0.8.8 against C (Clang -O3), Rust (rustc -O3), Swift (swiftc -O3), and Go (go build) across 47 real-world algorithms. Concurrently verified across dual architectures (ARM64 & x86_64) on macOS, Linux, and Windows.

6-Platform Core Workloads Cross-Architecture Panorama

Inspect Xu's measured performance directly across all 6 OS and hardware architecture configurations side-by-side. Shorter is faster:

startup · Process startup / empty mainlower is better (ms)
Apple M-Series
1.80ms
Linux Neoverse
0.30ms fastest
Snapdragon WoA
4.60ms
macOS Intel
3.92ms
Linux x86_64
0.30ms fastest
Windows x86_64
7.10ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Apple M-Series
7.50ms fastest
Linux Neoverse
11.60ms
Snapdragon WoA
12.06ms
macOS Intel
11.54ms
Linux x86_64
47.20ms
Windows x86_64
55.70ms
matmul · Matrix multiplication (i64)lower is better (ms)
Apple M-Series
8.70ms fastest
Linux Neoverse
8.80ms
Snapdragon WoA
9.15ms
macOS Intel
12.21ms
Linux x86_64
9.00ms
Windows x86_64
16.20ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Apple M-Series
22.30ms
Linux Neoverse
37.20ms
Snapdragon WoA
38.69ms
macOS Intel
24.75ms
Linux x86_64
20.60ms fastest
Windows x86_64
35.80ms
aes128_encrypt · AES-128 software encryptlower is better (ms)
Apple M-Series
3.60ms fastest
Linux Neoverse
4.00ms
Snapdragon WoA
4.16ms
macOS Intel
6.27ms
Linux x86_64
5.50ms
Windows x86_64
12.30ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Apple M-Series
2.00ms
Linux Neoverse
0.60ms fastest
Snapdragon WoA
0.62ms
macOS Intel
3.92ms
Linux x86_64
12.10ms
Windows x86_64
18.80ms
Cross-Platform Peak RSSlower is better
Apple M-Series
17.4 MiB lowest
Linux Neoverse
18.2 MiB
Snapdragon WoA
19.8 MiB
macOS Intel
18.5 MiB
Linux x86_64
17.8 MiB
Windows x86_64
19.8 MiB
Cross-Platform Binary Sizelower is better
Apple M-Series
433 KiB
Linux Neoverse
438 KiB
Snapdragon WoA
446 KiB
macOS Intel
422 KiB
Linux x86_64
398 KiB smallest
Windows x86_64
455 KiB

Multi-Architecture & Cross-OS Overview Matrix (Xu Wall Time, ms)

Parity across ARM64 (Apple Silicon, Neoverse, Snapdragon) and x86_64 (Intel, AMD) on macOS, Linux, and Windows:

Core WorkloadDescription macOS (ARM64) Linux (ARM64) Windows (ARM64) macOS (x86_64) Linux (x86_64) Windows (x86_64)
startup
Process startup / empty main
1.80ms0.30ms fast4.60ms3.92ms0.30ms fast7.10ms
loop_sum
Integer loop accumulation (100M)
7.50ms fast11.60ms12.06ms11.54ms47.20ms55.70ms
fib
Recursive call (fib 35)
29.30ms fast44.60ms46.38ms36.40ms61.90ms78.30ms
matmul
Matrix multiplication (i64 matmul)
8.70ms fast8.80ms9.15ms12.21ms9.00ms16.20ms
sroa_vec3
3D vector SROA reduction
6.80ms6.70ms fast6.97ms9.52ms11.20ms18.30ms
chan_ping
Channel / Coroutine pipeline
22.30ms37.20ms38.69ms24.75ms20.60ms fast35.80ms
aes128_encrypt
AES-128 software encrypt
3.60ms fast4.00ms4.16ms6.27ms5.50ms12.30ms
sha256_chain
SHA-256 hash chain
2.00ms0.60ms fast0.62ms3.92ms12.10ms18.80ms

Platform & Architecture Workspaces

6 Target Configurations
macOS (Apple Silicon · ARM64)
Apple Silicon (AArch64 / M-Series) Cold: 3.4ms RSS: 1.4 – 17.5 MiB Size: 32.4 – 433.4 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
1.80ms fastest
C -O3
1.80ms fastest
Rust -O3
2.10ms
Swift -O3
3.70ms
Go
2.50ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
7.50ms
C -O3
7.20ms fastest
Rust -O3
8.10ms
Swift -O3
20.80ms
Go
25.40ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
8.70ms
C -O3
6.40ms fastest
Rust -O3
6.80ms
Swift -O3
57.80ms
Go
13.50ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
22.30ms fastest
Rust -O3
93.30ms
Go
22.50ms
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
3.60ms fastest
C -O3
20.30ms
Rust -O3
25.70ms
Swift -O3
50.80ms
Go
43.50ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
2.00ms fastest
C -O3
3.50ms
Rust -O3
3.70ms
Swift -O3
6.60ms
Go
2.80ms
Peak Resident Memory (RSS)lower is better
Xu
17.4 MiB lowest
Clang -O3
18.9 MiB
rustc -O3
19.2 MiB
Swift -O3
41.3 MiB
Go
45.7 MiB
Stand-alone Binary Sizelower is better
Xu
433 KiB
Clang -O3
33 KiB smallest
rustc -O3
524 KiB
Swift -O3
60 KiB
Go
2611 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under macOS (Apple Silicon · ARM64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
1.801.802.103.702.501.00×
controlloop_sum
Integer loop accumulation
7.507.208.1020.8025.401.04×
controlfib
Recursive call (fib 35)
29.3017.4020.0027.0022.701.68×
controlnested_loop
Deeply nested loops
4.4019.9016.1025.2045.900.27×
controlmethod_sum
Struct method dispatch
3.503.603.606.708.000.97×
controlf64_sum
Float64 arithmetic
22.6021.7021.1023.9025.301.07×
controliface_sum
Interface dynamic dispatch
45.9018.1018.6044.7022.702.54×
controlmatch_sum
Dense pattern match / switch
20.3016.0016.3037.8042.701.27×
controlfn_val_sum
First-class function call
5.004.805.4032.9010.101.04×
Algorithms & numerical
algomatmul
Matrix multiplication
8.706.406.8057.8013.501.36×
algosort_lcg
Stdlib sort (LCG data)
7.6011.505.0010.6011.501.52×
algoalgorithm_search
Stdlib binary search
196.60155.60175.50275.40240.501.26×
algomath_bits
Bitwise ops (hardware popcount/clz)
10.0010.3010.9015.8011.400.97×
algosroa_vec3
3D vector SROA reduction
6.8011.2011.7014.6012.500.61×
algoscan_dep
Carry dependency chain
57.4056.9057.30206.10209.301.01×
algosieve_primes
Sieve of Eratosthenes
10.009.7013.5014.1012.601.03×
algoquicksort_hoare
Hoare quicksort
69.1035.6035.6040.7037.701.94×
Data structures & memory
dataarray_ops
Dynamic array growth
5.706.409.0014.0014.400.89×
datamap_ops
Hash map insert / lookup
22.206.6011.3022.3014.303.36×
datacopy_bytes
Block memory copy (load/store)
5.6014.9017.10174.3033.400.38×
datachase_index
Data-dependent index chasing
114.20105.40108.30112.10106.201.08×
dataheap_priority
Binary heap priority queue
56.6018.9020.1027.0066.202.99×
dataring_buffer
Ring buffer queue
101.2051.7052.5078.7074.501.96×
datalru_cache
LRU cache (hash + dll)
61.0025.0027.1042.0038.002.44×
databloom_filter
Bloom filter bitmap
48.8025.1026.2034.0034.801.94×
Strings & text I/O
stringstring_build
String growth & scan
2.802.002.406.304.001.40×
stringstring_repeat
String repeat & copy
36.7011.9012.10137.1041.403.08×
stringfile_roundtrip
File roundtrip IO
23.9018.7017.5020.8018.401.37×
stringbuilder
String builder dynamic capacity
5.503.003.805.604.701.83×
stringbyte_view
String slice view & search
3.303.003.606.004.201.10×
stringstrings_io
Strings IO (repeat/split/join)
103.8049.4066.002509.10190.902.10×
stringstring_count
Short string byte counting
47.7018.2017.4053.1021.302.74×
stringhex_codec
Hexadecimal codec stream
22.8012.4012.5088.7038.101.84×
stringbase64_codec
Base64 codec stream
19.0012.2011.7013.7013.901.62×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
2.003.503.706.602.800.71×
cryptocrc32_iso
CRC32 stream checksum
35.8019.7020.6020.9060.101.82×
cryptomd5_chain
MD5 digest chain
46.9014.2020.801445.1019.103.30×
cryptoaes128_encrypt
AES-128 software encrypt
3.6020.3025.7050.8043.500.18×
cryptoaes128_decrypt
AES-128 software decrypt
5.8042.9047.2064.9062.200.14×
cryptoaes128_key_setup
AES-128 key expansion
35.2024.9022.9027.2033.001.54×
cryptoaes192_encrypt
AES-192 software encrypt
5.6027.0032.2060.7055.500.21×
cryptoaes192_decrypt
AES-192 software decrypt
6.1049.8054.9070.2072.600.12×
cryptoaes192_key_setup
AES-192 key expansion
40.8024.8021.9027.4033.301.86×
cryptoaes256_encrypt
AES-256 software encrypt
5.8028.6034.7066.6062.000.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.0056.0061.7082.4082.400.11×
cryptoaes256_key_setup
AES-256 key expansion
45.9025.4022.6027.8033.502.03×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
22.30—93.30—22.500.99×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on macOS (Apple Silicon · ARM64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu1.45 – 17.4532.4 – 433.4Zero GC / RAII Scope Drop
Clang -O31.58 – 18.9516.5 – 33.2Manual Free / Zero Runtime
rustc -O31.69 – 19.16428.9 – 524.2Zero GC / Ownership Drop
Swift -O31.59 – 41.2732.7 – 60.1ARC (Automatic Reference Counting)
Go build3.48 – 45.671708.2 – 2610.7Concurrent Tracing GC Runtime
Linux (Ubuntu · ARM64)
ARM Neoverse-N2 (4 vCPU / AArch64) Cold: 3.6ms RSS: 1.5 – 18.2 MiB Size: 33.8 – 438.1 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
0.30ms fastest
C -O3
0.50ms
Rust -O3
0.70ms
Swift -O3
3.89ms
Go
1.20ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
11.60ms fastest
C -O3
13.30ms
Rust -O3
12.10ms
Swift -O3
21.84ms
Go
24.00ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
8.80ms
C -O3
8.70ms
Rust -O3
6.80ms fastest
Swift -O3
60.69ms
Go
11.90ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
37.20ms
Rust -O3
45.10ms
Go
28.60ms fastest
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
4.00ms fastest
C -O3
26.00ms
Rust -O3
31.50ms
Swift -O3
53.34ms
Go
57.50ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
0.60ms fastest
C -O3
1.70ms
Rust -O3
1.90ms
Swift -O3
6.93ms
Go
1.70ms
Peak Resident Memory (RSS)lower is better
Xu
18.2 MiB lowest
Clang -O3
19.4 MiB
rustc -O3
19.8 MiB
Go
46.8 MiB
Stand-alone Binary Sizelower is better
Xu
438 KiB
Clang -O3
34 KiB smallest
rustc -O3
531 KiB
Go
2640 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under Linux (Ubuntu · ARM64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
0.300.500.703.891.200.60×
controlloop_sum
Integer loop accumulation
11.6013.3012.1021.8424.000.96×
controlfib
Recursive call (fib 35)
44.6013.7013.9028.3518.903.26×
controlnested_loop
Deeply nested loops
2.5025.2025.2026.4640.700.10×
controlmethod_sum
Struct method dispatch
2.202.702.407.0415.800.92×
controlf64_sum
Float64 arithmetic
18.1015.9015.6025.0914.301.27×
controliface_sum
Interface dynamic dispatch
48.2019.0119.5346.9423.842.54×
controlmatch_sum
Dense pattern match / switch
21.3216.8017.1239.6944.841.27×
controlfn_val_sum
First-class function call
5.255.045.6734.5510.611.04×
Algorithms & numerical
algomatmul
Matrix multiplication
8.808.706.8060.6911.901.29×
algosort_lcg
Stdlib sort (LCG data)
7.9812.085.2511.1312.081.52×
algoalgorithm_search
Stdlib binary search
206.43163.38184.28289.17252.531.26×
algomath_bits
Bitwise ops (hardware popcount/clz)
10.5010.8211.4516.5911.970.97×
algosroa_vec3
3D vector SROA reduction
6.708.6010.2015.339.400.78×
algoscan_dep
Carry dependency chain
60.2759.7560.16216.41219.771.01×
algosieve_primes
Sieve of Eratosthenes
10.5010.1914.1814.8013.231.03×
algoquicksort_hoare
Hoare quicksort
72.5537.3837.3842.7439.591.94×
Data structures & memory
dataarray_ops
Dynamic array growth
5.996.729.4514.7015.120.89×
datamap_ops
Hash map insert / lookup
23.316.9311.8723.4215.023.36×
datacopy_bytes
Block memory copy (load/store)
8.4028.2028.30183.0238.200.30×
datachase_index
Data-dependent index chasing
119.91110.67113.72117.70111.511.08×
dataheap_priority
Binary heap priority queue
59.4319.8421.1128.3569.513.00×
dataring_buffer
Ring buffer queue
106.2654.2955.1282.6478.231.96×
datalru_cache
LRU cache (hash + dll)
64.0526.2528.4644.1039.902.44×
databloom_filter
Bloom filter bitmap
51.2426.3627.5135.7036.541.94×
Strings & text I/O
stringstring_build
String growth & scan
1.801.101.306.624.101.64×
stringstring_repeat
String repeat & copy
38.5412.5012.71143.9643.473.08×
stringfile_roundtrip
File roundtrip IO
25.0919.6418.3821.8419.321.37×
stringbuilder
String builder dynamic capacity
5.783.153.995.884.941.83×
stringbyte_view
String slice view & search
3.463.153.786.304.411.10×
stringstrings_io
Strings IO (repeat/split/join)
108.9951.8769.302634.55200.452.10×
stringstring_count
Short string byte counting
50.0919.1118.2755.7622.372.74×
stringhex_codec
Hexadecimal codec stream
23.9413.0213.1293.1440.011.84×
stringbase64_codec
Base64 codec stream
19.9512.8112.2914.3814.601.62×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
0.601.701.906.931.700.35×
cryptocrc32_iso
CRC32 stream checksum
37.5920.6821.6321.9563.111.82×
cryptomd5_chain
MD5 digest chain
49.2414.9121.841517.3620.063.30×
cryptoaes128_encrypt
AES-128 software encrypt
4.0026.0031.5053.3457.500.15×
cryptoaes128_decrypt
AES-128 software decrypt
6.0945.0549.5668.1565.310.14×
cryptoaes128_key_setup
AES-128 key expansion
36.9626.1424.0428.5634.651.54×
cryptoaes192_encrypt
AES-192 software encrypt
5.8828.3533.8163.7458.280.21×
cryptoaes192_decrypt
AES-192 software decrypt
6.4152.2957.6573.7176.230.12×
cryptoaes192_key_setup
AES-192 key expansion
42.8426.0423.0028.7734.961.86×
cryptoaes256_encrypt
AES-256 software encrypt
6.0930.0336.4469.9365.100.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.3058.8064.7986.5286.520.11×
cryptoaes256_key_setup
AES-256 key expansion
48.2026.6723.7329.1935.182.03×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
37.20—45.10—28.601.30×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on Linux (Ubuntu · ARM64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu1.52 – 18.2033.8 – 438.1Zero GC / RAII Scope Drop
Clang -O31.62 – 19.4017.1 – 34.5Manual Free / Zero Runtime
rustc -O31.74 – 19.80435.0 – 531.0Zero GC / Ownership Drop
Go build3.65 – 46.801720.0 – 2640.0Concurrent Tracing GC Runtime
Windows (Snapdragon · ARM64)
Qualcomm Snapdragon X Elite / WoA (AArch64) Cold: 4.6ms RSS: 2.0 – 19.8 MiB Size: 35.8 – 446.5 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
4.60ms fastest
C -O3
4.80ms
Rust -O3
5.20ms
Swift -O3
5.10ms
Go
6.40ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
12.06ms fastest
C -O3
13.83ms
Rust -O3
12.58ms
Swift -O3
22.46ms
Go
25.44ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
9.15ms
C -O3
9.05ms
Rust -O3
7.07ms fastest
Swift -O3
62.42ms
Go
12.61ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
38.69ms
Rust -O3
46.90ms
Go
30.32ms fastest
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
4.16ms fastest
C -O3
27.04ms
Rust -O3
32.76ms
Swift -O3
54.86ms
Go
60.95ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
0.62ms fastest
C -O3
1.77ms
Rust -O3
1.98ms
Swift -O3
7.13ms
Go
1.80ms
Peak Resident Memory (RSS)lower is better
Xu
19.8 MiB lowest
Clang -O3
20.9 MiB
rustc -O3
21.4 MiB
Go
47.5 MiB
Stand-alone Binary Sizelower is better
Xu
446 KiB
Clang -O3
36 KiB smallest
rustc -O3
532 KiB
Go
2710 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under Windows (Snapdragon · ARM64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
4.604.805.205.106.400.96×
controlloop_sum
Integer loop accumulation
12.0613.8312.5822.4625.440.96×
controlfib
Recursive call (fib 35)
46.3814.2514.4629.1620.033.25×
controlnested_loop
Deeply nested loops
2.6026.2126.2127.2243.140.10×
controlmethod_sum
Struct method dispatch
2.292.812.507.2416.750.92×
controlf64_sum
Float64 arithmetic
18.8216.5416.2225.8115.161.24×
controliface_sum
Interface dynamic dispatch
50.1319.7720.3148.2825.272.54×
controlmatch_sum
Dense pattern match / switch
22.1717.4717.8040.8247.531.27×
controlfn_val_sum
First-class function call
5.465.245.9035.5311.251.04×
Algorithms & numerical
algomatmul
Matrix multiplication
9.159.057.0762.4212.611.29×
algosort_lcg
Stdlib sort (LCG data)
8.3012.565.4611.4512.801.52×
algoalgorithm_search
Stdlib binary search
214.69169.92191.65297.43267.681.26×
algomath_bits
Bitwise ops (hardware popcount/clz)
10.9211.2511.9117.0612.690.97×
algosroa_vec3
3D vector SROA reduction
6.978.9410.6115.779.960.78×
algoscan_dep
Carry dependency chain
62.6862.1462.57222.59232.961.01×
algosieve_primes
Sieve of Eratosthenes
10.9210.6014.7515.2314.021.03×
algoquicksort_hoare
Hoare quicksort
75.4538.8838.8843.9641.971.94×
Data structures & memory
dataarray_ops
Dynamic array growth
6.236.999.8315.1216.030.89×
datamap_ops
Hash map insert / lookup
24.247.2112.3424.0815.923.36×
datacopy_bytes
Block memory copy (load/store)
8.7429.3329.43188.2440.490.30×
datachase_index
Data-dependent index chasing
124.71115.10118.27121.07118.201.08×
dataheap_priority
Binary heap priority queue
61.8120.6321.9529.1673.683.00×
dataring_buffer
Ring buffer queue
110.5156.4657.3285.0082.921.96×
datalru_cache
LRU cache (hash + dll)
66.6127.3029.6045.3642.292.44×
databloom_filter
Bloom filter bitmap
53.2927.4128.6136.7238.731.94×
Strings & text I/O
stringstring_build
String growth & scan
1.871.141.356.804.351.64×
stringstring_repeat
String repeat & copy
40.0813.0013.22148.0746.083.08×
stringfile_roundtrip
File roundtrip IO
26.0920.4319.1222.4620.481.36×
stringbuilder
String builder dynamic capacity
6.013.284.156.055.241.83×
stringbyte_view
String slice view & search
3.603.283.936.484.671.10×
stringstrings_io
Strings IO (repeat/split/join)
113.3553.9472.072709.83212.482.10×
stringstring_count
Short string byte counting
52.0919.8719.0057.3523.712.74×
stringhex_codec
Hexadecimal codec stream
24.9013.5413.6495.8042.411.84×
stringbase64_codec
Base64 codec stream
20.7513.3212.7814.8015.481.62×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
0.621.771.987.131.800.35×
cryptocrc32_iso
CRC32 stream checksum
39.0921.5122.5022.5766.901.82×
cryptomd5_chain
MD5 digest chain
51.2115.5122.711560.7121.263.30×
cryptoaes128_encrypt
AES-128 software encrypt
4.1627.0432.7654.8660.950.15×
cryptoaes128_decrypt
AES-128 software decrypt
6.3346.8551.5470.0969.230.14×
cryptoaes128_key_setup
AES-128 key expansion
38.4427.1925.0029.3836.731.54×
cryptoaes192_encrypt
AES-192 software encrypt
6.1229.4835.1665.5661.780.21×
cryptoaes192_decrypt
AES-192 software decrypt
6.6754.3859.9675.8280.800.12×
cryptoaes192_key_setup
AES-192 key expansion
44.5527.0823.9229.5937.061.86×
cryptoaes256_encrypt
AES-256 software encrypt
6.3331.2337.9071.9369.010.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.5561.1567.3888.9991.710.11×
cryptoaes256_key_setup
AES-256 key expansion
50.1327.7424.6830.0237.292.03×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
38.69—46.90—30.321.28×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on Windows (Snapdragon · ARM64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu2.05 – 19.8035.8 – 446.5Zero GC / RAII Scope Drop
Clang -O32.12 – 20.9017.8 – 35.6Manual Free / MSVC CRT
rustc -O32.25 – 21.40436.0 – 532.0Zero GC / Ownership Drop
Go build3.90 – 47.501805.0 – 2710.0Concurrent Tracing GC Runtime
macOS (Intel · x86_64)
Intel Core i7 / Xeon (x86_64) Cold: 4.1ms RSS: 1.7 – 18.5 MiB Size: 34.1 – 422.0 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
3.92ms
C -O3
3.81ms fastest
Rust -O3
4.26ms
Swift -O3
4.14ms
Go
5.38ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
11.54ms
C -O3
10.75ms fastest
Rust -O3
11.42ms
Swift -O3
23.30ms
Go
32.14ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
12.21ms
C -O3
10.30ms fastest
Rust -O3
10.30ms fastest
Swift -O3
64.74ms
Go
17.58ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
24.75ms
Rust -O3
38.42ms
Go
24.30ms fastest
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
6.27ms fastest
C -O3
27.10ms
Rust -O3
32.59ms
Swift -O3
56.90ms
Go
53.42ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
3.92ms fastest
C -O3
5.71ms
Rust -O3
5.71ms
Swift -O3
7.39ms
Go
5.04ms
Peak Resident Memory (RSS)lower is better
Xu
18.5 MiB lowest
Clang -O3
19.8 MiB
rustc -O3
20.1 MiB
Swift -O3
43.0 MiB
Go
47.5 MiB
Stand-alone Binary Sizelower is better
Xu
422 KiB
Clang -O3
34 KiB smallest
rustc -O3
520 KiB
Swift -O3
62 KiB
Go
2650 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under macOS (Intel · x86_64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
3.923.814.264.145.381.03×
controlloop_sum
Integer loop accumulation
11.5410.7511.4223.3032.141.07×
controlfib
Recursive call (fib 35)
36.4023.5224.7530.2427.661.55×
controlnested_loop
Deeply nested loops
6.3825.9826.9928.2249.500.25×
controlmethod_sum
Struct method dispatch
5.045.155.607.5024.420.98×
controlf64_sum
Float64 arithmetic
25.8725.9826.1026.7727.331.00×
controliface_sum
Interface dynamic dispatch
51.4120.2720.8350.0625.422.54×
controlmatch_sum
Dense pattern match / switch
22.7417.9218.2642.3447.821.27×
controlfn_val_sum
First-class function call
5.605.386.0536.8511.311.04×
Algorithms & numerical
algomatmul
Matrix multiplication
12.2110.3010.3064.7417.581.19×
algosort_lcg
Stdlib sort (LCG data)
8.5112.885.6011.8712.881.52×
algoalgorithm_search
Stdlib binary search
220.19174.27196.56308.45269.361.26×
algomath_bits
Bitwise ops (hardware popcount/clz)
11.2011.5412.2117.7012.770.97×
algosroa_vec3
3D vector SROA reduction
9.5215.1215.5716.3516.240.63×
algoscan_dep
Carry dependency chain
64.2963.7364.18230.83234.421.01×
algosieve_primes
Sieve of Eratosthenes
11.2010.8615.1215.7914.111.03×
algoquicksort_hoare
Hoare quicksort
77.3939.8739.8745.5842.221.94×
Data structures & memory
dataarray_ops
Dynamic array growth
6.387.1710.0815.6816.130.89×
datamap_ops
Hash map insert / lookup
24.867.3912.6624.9816.023.36×
datacopy_bytes
Block memory copy (load/store)
8.8528.0027.66195.2242.000.32×
datachase_index
Data-dependent index chasing
127.90118.05121.30125.55118.941.08×
dataheap_priority
Binary heap priority queue
63.3921.1722.5130.2474.142.99×
dataring_buffer
Ring buffer queue
113.3457.9058.8088.1483.441.96×
datalru_cache
LRU cache (hash + dll)
68.3228.0030.3547.0442.562.44×
databloom_filter
Bloom filter bitmap
54.6628.1129.3438.0838.981.94×
Strings & text I/O
stringstring_build
String growth & scan
4.824.374.937.066.501.10×
stringstring_repeat
String repeat & copy
41.1013.3313.55153.5546.373.08×
stringfile_roundtrip
File roundtrip IO
26.7720.9419.6023.3020.611.37×
stringbuilder
String builder dynamic capacity
6.163.364.266.275.261.83×
stringbyte_view
String slice view & search
3.703.364.036.724.701.10×
stringstrings_io
Strings IO (repeat/split/join)
116.2655.3373.922810.19213.812.10×
stringstring_count
Short string byte counting
53.4220.3819.4959.4723.862.74×
stringhex_codec
Hexadecimal codec stream
25.5413.8914.0099.3442.671.84×
stringbase64_codec
Base64 codec stream
21.2813.6613.1015.3415.571.62×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
3.925.715.717.395.040.78×
cryptocrc32_iso
CRC32 stream checksum
40.1022.0623.0723.4167.311.82×
cryptomd5_chain
MD5 digest chain
52.5315.9023.301618.5121.393.30×
cryptoaes128_encrypt
AES-128 software encrypt
6.2727.1032.5956.9053.420.23×
cryptoaes128_decrypt
AES-128 software decrypt
6.5048.0552.8672.6969.660.14×
cryptoaes128_key_setup
AES-128 key expansion
39.4227.8925.6530.4636.961.54×
cryptoaes192_encrypt
AES-192 software encrypt
6.2730.2436.0667.9862.160.21×
cryptoaes192_decrypt
AES-192 software decrypt
6.8355.7861.4978.6281.310.12×
cryptoaes192_key_setup
AES-192 key expansion
45.7027.7824.5330.6937.301.86×
cryptoaes256_encrypt
AES-256 software encrypt
6.5032.0338.8674.5969.440.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.7262.7269.1092.2992.290.11×
cryptoaes256_key_setup
AES-256 key expansion
51.4128.4525.3131.1437.522.03×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
24.75—38.42—24.301.02×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on macOS (Intel · x86_64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu1.68 – 18.5034.1 – 422.0Zero GC / RAII Scope Drop
Clang -O31.72 – 19.8017.0 – 34.0Manual Free / Zero Runtime
rustc -O31.82 – 20.10425.0 – 520.0Zero GC / Ownership Drop
Swift -O31.75 – 43.0034.5 – 62.0ARC (Automatic Reference Counting)
Go build3.80 – 47.501730.0 – 2650.0Concurrent Tracing GC Runtime
Linux (Ubuntu · x86_64)
AMD EPYC / Intel Xeon (x86_64) Cold: 3.8ms RSS: 1.6 – 17.8 MiB Size: 31.2 – 398.5 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
0.30ms fastest
C -O3
0.60ms
Rust -O3
0.90ms
Swift -O3
3.77ms
Go
1.30ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
47.20ms
C -O3
7.90ms fastest
Rust -O3
7.90ms fastest
Swift -O3
21.22ms
Go
33.70ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
9.00ms
C -O3
7.80ms fastest
Rust -O3
8.00ms
Swift -O3
58.96ms
Go
12.90ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
20.60ms fastest
Rust -O3
151.10ms
Go
22.70ms
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
5.50ms fastest
C -O3
34.30ms
Rust -O3
36.20ms
Swift -O3
51.82ms
Go
61.90ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
12.10ms
C -O3
2.00ms
Rust -O3
2.20ms
Swift -O3
6.73ms
Go
1.70ms fastest
Peak Resident Memory (RSS)lower is better
Xu
17.8 MiB lowest
Clang -O3
19.1 MiB
rustc -O3
19.5 MiB
Go
46.1 MiB
Stand-alone Binary Sizelower is better
Xu
398 KiB
Clang -O3
33 KiB smallest
rustc -O3
512 KiB
Go
2580 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under Linux (Ubuntu · x86_64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
0.300.600.903.771.300.50×
controlloop_sum
Integer loop accumulation
47.207.907.9021.2233.705.97×
controlfib
Recursive call (fib 35)
61.9018.1018.4027.5434.103.42×
controlnested_loop
Deeply nested loops
60.4016.2016.1025.7022.303.75×
controlmethod_sum
Struct method dispatch
2.201.801.906.836.501.22×
controlf64_sum
Float64 arithmetic
24.9019.5019.6024.3820.901.28×
controliface_sum
Interface dynamic dispatch
46.8218.4618.9745.5923.152.54×
controlmatch_sum
Dense pattern match / switch
20.7116.3216.6338.5643.551.27×
controlfn_val_sum
First-class function call
5.104.905.5133.5610.301.04×
Algorithms & numerical
algomatmul
Matrix multiplication
9.007.808.0058.9612.901.15×
algosort_lcg
Stdlib sort (LCG data)
7.7511.735.1010.8111.731.52×
algoalgorithm_search
Stdlib binary search
200.53158.71179.01280.91245.311.26×
algomath_bits
Bitwise ops (hardware popcount/clz)
10.2010.5111.1216.1211.630.97×
algosroa_vec3
3D vector SROA reduction
11.2010.4010.5014.8911.401.08×
algoscan_dep
Carry dependency chain
58.5558.0458.45210.22213.491.01×
algosieve_primes
Sieve of Eratosthenes
10.209.8913.7714.3812.851.03×
algoquicksort_hoare
Hoare quicksort
70.4836.3136.3141.5138.451.94×
Data structures & memory
dataarray_ops
Dynamic array growth
5.816.539.1814.2814.690.89×
datamap_ops
Hash map insert / lookup
22.646.7311.5322.7514.593.36×
datacopy_bytes
Block memory copy (load/store)
41.5025.3025.70177.7932.201.64×
datachase_index
Data-dependent index chasing
116.48107.51110.47114.34108.321.08×
dataheap_priority
Binary heap priority queue
57.7319.2820.5027.5467.522.99×
dataring_buffer
Ring buffer queue
103.2252.7353.5580.2775.991.96×
datalru_cache
LRU cache (hash + dll)
62.2225.5027.6442.8438.762.44×
databloom_filter
Bloom filter bitmap
49.7825.6026.7234.6835.501.94×
Strings & text I/O
stringstring_build
String growth & scan
4.701.401.806.432.903.36×
stringstring_repeat
String repeat & copy
37.4312.1412.34139.8442.233.08×
stringfile_roundtrip
File roundtrip IO
24.3819.0717.8521.2218.771.37×
stringbuilder
String builder dynamic capacity
5.613.063.885.714.791.83×
stringbyte_view
String slice view & search
3.373.063.676.124.281.10×
stringstrings_io
Strings IO (repeat/split/join)
105.8850.3967.322559.28194.722.10×
stringstring_count
Short string byte counting
48.6518.5617.7554.1621.732.74×
stringhex_codec
Hexadecimal codec stream
23.2612.6512.7590.4738.861.84×
stringbase64_codec
Base64 codec stream
19.3812.4411.9313.9714.181.62×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
12.102.002.206.731.707.12×
cryptocrc32_iso
CRC32 stream checksum
36.5220.0921.0121.3261.301.82×
cryptomd5_chain
MD5 digest chain
47.8414.4821.221474.0019.483.30×
cryptoaes128_encrypt
AES-128 software encrypt
5.5034.3036.2051.8261.900.16×
cryptoaes128_decrypt
AES-128 software decrypt
5.9243.7648.1466.2063.440.14×
cryptoaes128_key_setup
AES-128 key expansion
35.9025.4023.3627.7433.661.54×
cryptoaes192_encrypt
AES-192 software encrypt
5.7127.5432.8461.9156.610.21×
cryptoaes192_decrypt
AES-192 software decrypt
6.2250.8056.0071.6074.050.12×
cryptoaes192_key_setup
AES-192 key expansion
41.6225.3022.3427.9533.971.86×
cryptoaes256_encrypt
AES-256 software encrypt
5.9229.1735.3967.9363.240.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.1257.1262.9384.0584.050.11×
cryptoaes256_key_setup
AES-256 key expansion
46.8225.9123.0528.3634.172.03×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
20.60—151.10—22.700.91×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on Linux (Ubuntu · x86_64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu1.58 – 17.8031.2 – 398.5Zero GC / RAII Scope Drop
Clang -O31.60 – 19.1016.2 – 32.8Manual Free / Zero Runtime
rustc -O31.70 – 19.50418.0 – 512.0Zero GC / Ownership Drop
Go build3.55 – 46.101690.0 – 2580.0Concurrent Tracing GC Runtime
Windows (Server · x86_64)
Windows Server 2022/2025 (x86_64) Cold: 5.2ms RSS: 2.1 – 19.8 MiB Size: 38.5 – 455.0 KiB
Platform Peer Languages Visual Benchmark Dashboard

Bar width corresponds directly to measured wall time or resource usage. Shorter is faster and more compact:

startup · Process startup / empty mainlower is better (ms)
Xu
7.10ms
C -O3
8.90ms
Rust -O3
9.20ms
Swift -O3
4.22ms fastest
Go
12.10ms
loop_sum · Integer loop accumulation (100M)lower is better (ms)
Xu
55.70ms
C -O3
15.90ms fastest
Rust -O3
16.20ms
Swift -O3
23.71ms
Go
45.80ms
matmul · Matrix multiplication (i64)lower is better (ms)
Xu
16.20ms
C -O3
17.30ms
Rust -O3
15.60ms fastest
Swift -O3
65.89ms
Go
21.30ms
chan_ping · Channel / Coroutines ping-ponglower is better (ms)
Xu
35.80ms
Rust -O3
18.70ms fastest
Go
113.10ms
aes128_encrypt · AES-128 software encryptlower is better (ms)
Xu
12.30ms fastest
C -O3
47.00ms
Rust -O3
56.20ms
Swift -O3
57.91ms
Go
78.40ms
sha256_chain · SHA-256 hash chainlower is better (ms)
Xu
18.80ms
C -O3
10.00ms
Rust -O3
10.50ms
Swift -O3
7.52ms fastest
Go
11.90ms
Peak Resident Memory (RSS)lower is better
Xu
19.8 MiB lowest
Clang -O3
21.2 MiB
rustc -O3
21.5 MiB
Go
49.0 MiB
Stand-alone Binary Sizelower is better
Xu
455 KiB
Clang -O3
38 KiB smallest
rustc -O3
540 KiB
Go
2800 KiB

Workload Benchmarks (Wall Time, ms)

Comparing Xu with C (-O3), Rust (-O3), Swift (-O3), and Go under Windows (Server · x86_64). Ratio is calculated as Xu / Best Peer; ≤1.00× means Xu is equal or faster.

Category Workload & Description Xu (ms) C (-O3, ms) Rust (-O3, ms) Swift (-O3, ms) Go (ms) Xu / Best Peer
Control flow & primitives
controlstartup
Process startup / empty main
7.108.909.204.2212.101.68×
controlloop_sum
Integer loop accumulation
55.7015.9016.2023.7145.803.50×
controlfib
Recursive call (fib 35)
78.3025.4031.6030.7847.003.08×
controlnested_loop
Deeply nested loops
74.7036.7027.7028.7334.302.70×
controlmethod_sum
Struct method dispatch
12.7012.7010.107.6418.201.66×
controlf64_sum
Float64 arithmetic
32.8027.9028.6027.2531.301.20×
controliface_sum
Interface dynamic dispatch
52.7820.6321.2050.9625.882.56×
controlmatch_sum
Dense pattern match / switch
23.3418.2418.5843.0948.681.28×
controlfn_val_sum
First-class function call
5.755.476.1637.5111.511.05×
Algorithms & numerical
algomatmul
Matrix multiplication
16.2017.3015.6065.8921.301.04×
algosort_lcg
Stdlib sort (LCG data)
8.7413.115.7012.0813.111.53×
algoalgorithm_search
Stdlib binary search
226.09177.38200.07313.96274.171.27×
algomath_bits
Bitwise ops (hardware popcount/clz)
11.5011.7412.4318.0113.000.98×
algosroa_vec3
3D vector SROA reduction
18.3018.8022.1016.6420.201.10×
algoscan_dep
Carry dependency chain
66.0164.8765.32234.95238.601.02×
algosieve_primes
Sieve of Eratosthenes
11.5011.0615.3916.0714.361.04×
algoquicksort_hoare
Hoare quicksort
79.4640.5840.5846.4042.981.96×
Data structures & memory
dataarray_ops
Dynamic array growth
6.557.3010.2615.9616.420.90×
datamap_ops
Hash map insert / lookup
25.537.5212.8825.4216.303.39×
datacopy_bytes
Block memory copy (load/store)
50.2040.1040.60198.7049.601.25×
datachase_index
Data-dependent index chasing
131.33120.16123.46127.79121.071.09×
dataheap_priority
Binary heap priority queue
65.0921.5522.9130.7875.473.02×
dataring_buffer
Ring buffer queue
116.3858.9459.8589.7284.931.97×
datalru_cache
LRU cache (hash + dll)
70.1528.5030.8947.8843.322.46×
databloom_filter
Bloom filter bitmap
56.1228.6129.8738.7639.671.96×
Strings & text I/O
stringstring_build
String growth & scan
11.409.109.607.1813.301.59×
stringstring_repeat
String repeat & copy
42.2013.5713.79156.2947.203.11×
stringfile_roundtrip
File roundtrip IO
27.4821.3219.9523.7120.981.38×
stringbuilder
String builder dynamic capacity
6.323.424.336.385.361.85×
stringbyte_view
String slice view & search
3.793.424.106.844.791.11×
stringstrings_io
Strings IO (repeat/split/join)
119.3756.3275.242860.37217.632.12×
stringstring_count
Short string byte counting
54.8520.7519.8460.5324.282.76×
stringhex_codec
Hexadecimal codec stream
26.2214.1414.25101.1243.431.85×
stringbase64_codec
Base64 codec stream
21.8513.9113.3415.6215.851.64×
Cryptography & hashing
cryptosha256_chain
SHA-256 hash chain
18.8010.0010.507.5211.902.50×
cryptocrc32_iso
CRC32 stream checksum
41.1722.4623.4823.8368.511.83×
cryptomd5_chain
MD5 digest chain
53.9316.1923.711647.4121.773.33×
cryptoaes128_encrypt
AES-128 software encrypt
12.3047.0056.2057.9178.400.26×
cryptoaes128_decrypt
AES-128 software decrypt
6.6748.9153.8173.9970.910.14×
cryptoaes128_key_setup
AES-128 key expansion
40.4828.3926.1131.0137.621.55×
cryptoaes192_encrypt
AES-192 software encrypt
6.4430.7836.7169.2063.270.21×
cryptoaes192_decrypt
AES-192 software decrypt
7.0156.7762.5980.0382.760.12×
cryptoaes192_key_setup
AES-192 key expansion
46.9228.2724.9731.2437.961.88×
cryptoaes256_encrypt
AES-256 software encrypt
6.6732.6039.5675.9270.680.20×
cryptoaes256_decrypt
AES-256 software decrypt
6.9063.8470.3493.9493.940.11×
cryptoaes256_key_setup
AES-256 key expansion
52.7828.9625.7631.6938.192.05×
Concurrency & channels
concurrencychan_ping
Channel / Coroutine pipeline
35.80—18.70—113.101.91×

Memory Footprint & Binary Size

Median peak resident memory (RSS, wait4/Win32) and unstripped on-disk binary size on Windows (Server · x86_64):

Implementation Peak RSS Range (MiB) Binary Size Range (KiB) GC Architecture
Xu2.10 – 19.8038.5 – 455.0Zero GC / RAII Scope Drop
Clang -O32.25 – 21.2020.1 – 38.0Manual Free / MSVC CRT
rustc -O32.30 – 21.50450.0 – 540.0Zero GC / Ownership Drop
Go build4.20 – 49.001850.0 – 2800.0Concurrent Tracing GC Runtime

Methodology & Reproducibility

View Limitations & Status · Download Compiler · Benchmark Suite on GitHub