Rust VS C# benchmarks

Current benchmark data was generated on Tue Apr 01 2025, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] AMD EPYC 7763 64-Core Processor (Model 1)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 1.3ms 0.0ms 1.8MB 0ms 0ms rustc 1.85.1
rust 1.rs 1.4ms 0.1ms 1.8MB 0ms 0ms rustc 1.88.0-nightly
csharp 1.cs 10.0ms 3.3ms 9.4MB 0ms 0ms dotnet/aot 9.0.202
csharp 1.cs 31ms 0.8ms 21.3MB 20ms 0ms mono 6.12.0
csharp 1.cs 36ms 0.4ms 26.3MB 20ms 6ms dotnet 9.0.202

mandelbrot

Input: 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 9.rs 248ms 2.0ms 4.8MB 240ms 0ms rustc 1.88.0-nightly
rust 8.rs 308ms 0.6ms 4.8MB 300ms 0ms rustc 1.85.1
csharp 4.cs 347ms 11ms 37.2MB 320ms 10ms dotnet 9.0.202
csharp 2.cs 601ms 41ms 39.9MB 570ms 20ms dotnet 9.0.202
csharp 1.cs 2058ms 25ms 36.4MB 2037ms 10ms dotnet 9.0.202
csharp 3.cs 2353ms 6.9ms 16.4MB 2340ms 0ms dotnet/aot 9.0.202
csharp 3.cs 2450ms 7.4ms 36.5MB 2423ms 10ms dotnet 9.0.202
csharp 1.cs 4007ms 97ms 16.4MB 3990ms 0ms dotnet/aot 9.0.202
csharp 1.cs timeout 0.0ms 23.3MB 4983ms 0ms mono 6.12.0

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 9.rs 14ms 1.4ms 1.8MB 10ms 0ms rustc 1.88.0-nightly
rust 8.rs 15ms 0.2ms 1.9MB 10ms 0ms rustc 1.85.1
csharp 4.cs 80ms 1.6ms 34.5MB 60ms 10ms dotnet 9.0.202
csharp 3.cs 111ms 2.4ms 13.8MB 97ms 0ms dotnet/aot 9.0.202
csharp 2.cs 116ms 3.7ms 36.6MB 93ms 10ms dotnet 9.0.202
csharp 1.cs 138ms 0.5ms 33.6MB 117ms 10ms dotnet 9.0.202
csharp 3.cs 170ms 1.6ms 33.8MB 147ms 10ms dotnet 9.0.202
csharp 1.cs 176ms 3.6ms 13.5MB 160ms 0ms dotnet/aot 9.0.202
csharp 1.cs 570ms 7.1ms 23.9MB 553ms 0ms mono 6.12.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 4-i.rs 165ms 3.6ms 1.9MB 157ms 0ms rustc 1.85.1
rust 7-i.rs 237ms 0.6ms 1.8MB 230ms 0ms rustc 1.85.1
rust 1.rs 240ms 0.7ms 1.8MB 230ms 0ms rustc 1.85.1
rust 3.rs 279ms 0.5ms 1.8MB 270ms 0ms rustc 1.88.0-nightly
rust 2.rs 279ms 0.8ms 1.8MB 270ms 0ms rustc 1.85.1
csharp 9.cs 363ms 4.2ms 27.6MB 343ms 3ms dotnet 9.0.202
csharp 8.cs 373ms 1.9ms 9.9MB 360ms 0ms dotnet/aot 9.0.202
csharp 8.cs 421ms 0.6ms 27.6MB 400ms 10ms dotnet 9.0.202
csharp 8.cs 1251ms 3.3ms 22.1MB 1233ms 0ms mono 6.12.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 4-i.rs 18ms 0.1ms 1.9MB 10ms 0ms rustc 1.85.1
rust 7-i.rs 26ms 0.5ms 1.9MB 20ms 0ms rustc 1.85.1
rust 1.rs 26ms 0.4ms 1.9MB 20ms 0ms rustc 1.85.1
rust 3.rs 30ms 0.0ms 1.8MB 20ms 0ms rustc 1.88.0-nightly
rust 2.rs 30ms 0.8ms 1.8MB 20ms 0ms rustc 1.85.1
csharp 8.cs 45ms 1.4ms 9.9MB 30ms 0ms dotnet/aot 9.0.202
csharp 9.cs 95ms 3.9ms 27.8MB 73ms 10ms dotnet 9.0.202
csharp 8.cs 95ms 0.2ms 27.6MB 77ms 10ms dotnet 9.0.202
csharp 8.cs 165ms 1.8ms 22.4MB 153ms 0ms mono 6.12.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 8-m.rs 494ms 0.5ms 2.6MB 1913ms 0ms rustc 1.88.0-nightly
rust 7-m.rs 501ms 0.3ms 2.3MB 1940ms 3ms rustc 1.85.1
rust 8.rs 996ms 1.9ms 2.5MB 987ms 0ms rustc 1.88.0-nightly
csharp 3-m.cs 1864ms 3.2ms 10.6MB 7257ms 10ms dotnet/aot 9.0.202
rust 2-m.rs 1955ms 1.5ms 2.4MB 7683ms 10ms rustc 1.85.1
csharp 3-m.cs 2008ms 131ms 30.1MB 7223ms 17ms dotnet 9.0.202
rust 7.rs 2107ms 4.3ms 2.0MB 2100ms 0ms rustc 1.85.1
rust 2.rs 4218ms 10.0ms 2.0MB 4207ms 0ms rustc 1.85.1
csharp 3-m.cs 4633ms 30ms 24.9MB 17887ms 23ms mono 6.12.0

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 8-m.rs 128ms 0.2ms 2.4MB 470ms 0ms rustc 1.88.0-nightly
rust 7-m.rs 131ms 1.8ms 2.1MB 477ms 0ms rustc 1.85.1
rust 8.rs 251ms 2.0ms 2.1MB 240ms 0ms rustc 1.88.0-nightly
csharp 3-m.cs 477ms 1.9ms 10.3MB 1807ms 3ms dotnet/aot 9.0.202
rust 2-m.rs 493ms 0.3ms 2.1MB 1907ms 0ms rustc 1.85.1
rust 7.rs 531ms 2.8ms 1.8MB 520ms 0ms rustc 1.85.1
csharp 3-m.cs 535ms 1.5ms 30.0MB 1870ms 17ms dotnet 9.0.202
rust 2.rs 1054ms 2.3ms 1.9MB 1043ms 0ms rustc 1.85.1
csharp 3-m.cs 1312ms 112ms 24.4MB 4640ms 13ms mono 6.12.0

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 8-m.rs 35ms 0.1ms 2.1MB 107ms 3ms rustc 1.88.0-nightly
rust 7-m.rs 36ms 0.2ms 2.1MB 110ms 0ms rustc 1.85.1
rust 8.rs 64ms 0.0ms 2.0MB 60ms 0ms rustc 1.88.0-nightly
rust 2-m.rs 127ms 0.2ms 2.1MB 467ms 3ms rustc 1.85.1
csharp 3-m.cs 129ms 1.2ms 10.6MB 447ms 3ms dotnet/aot 9.0.202
rust 7.rs 138ms 1.1ms 1.9MB 130ms 0ms rustc 1.85.1
csharp 3-m.cs 178ms 1.4ms 28.3MB 507ms 10ms dotnet 9.0.202
rust 2.rs 266ms 1.3ms 1.9MB 260ms 0ms rustc 1.85.1
csharp 3-m.cs 348ms 2.9ms 25.6MB 1167ms 10ms mono 6.12.0

binarytrees

Input: 18

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 1.cs 948ms 4.4ms 196.3MB 950ms 160ms dotnet 9.0.202
csharp 1.cs 1012ms 10ms 166.5MB 1010ms 130ms dotnet/aot 9.0.202
rust 4.rs 1275ms 2.7ms 33.8MB 1250ms 10ms rustc 1.85.1
rust 5.rs 1350ms 10ms 33.8MB 1330ms 7ms rustc 1.85.1
rust 3.rs 1456ms 37ms 49.8MB 1427ms 20ms rustc 1.85.1
csharp 1.cs 1761ms 69ms 101.3MB 1963ms 233ms mono 6.12.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 4.rs 119ms 2.7ms 5.8MB 110ms 0ms rustc 1.85.1
rust 5.rs 127ms 3.5ms 5.8MB 117ms 0ms rustc 1.85.1
csharp 1.cs 133ms 8.6ms 32.6MB 87ms 33ms dotnet/aot 9.0.202
rust 3.rs 143ms 2.0ms 7.8MB 130ms 0ms rustc 1.85.1
csharp 1.cs 149ms 2.7ms 44.2MB 127ms 10ms mono 6.12.0
csharp 1.cs 202ms 7.8ms 51.2MB 160ms 37ms dotnet 9.0.202

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 3-m.rs 515ms 33ms 9.1MB 1920ms 73ms rustc 1.85.1
rust 5-m.rs 705ms 15ms 5.5MB 2663ms 83ms rustc 1.85.1
rust 1-m.rs 972ms 6.4ms 8.5MB 3587ms 207ms rustc 1.85.1
rust 3.rs 1150ms 20ms 9.3MB 1100ms 37ms rustc 1.85.1
rust 4.rs 1914ms 27ms 7.4MB 1900ms 0ms rustc 1.85.1
csharp 1-m.cs 2276ms 132ms 52.0MB 7957ms 63ms dotnet/aot 9.0.202
csharp 1-m.cs 2746ms 47ms 67.1MB 8730ms 100ms dotnet 9.0.202

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 5-m.rs 52ms 1.0ms 3.4MB 157ms 10ms rustc 1.85.1
rust 3-m.rs 57ms 3.9ms 4.4MB 173ms 13ms rustc 1.85.1
rust 3.rs 73ms 1.3ms 4.0MB 63ms 0ms rustc 1.85.1
rust 1-m.rs 75ms 0.5ms 3.8MB 243ms 17ms rustc 1.85.1
rust 4.rs 116ms 2.5ms 3.3MB 107ms 0ms rustc 1.85.1
csharp 1-m.cs 161ms 21ms 19.1MB 460ms 10ms dotnet/aot 9.0.202
csharp 1-m.cs 311ms 6.5ms 37.2MB 817ms 20ms dotnet 9.0.202

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 122ms 2.6ms 3.6MB 110ms 0ms rustc 1.85.1
rust 2.rs 422ms 2.5ms 3.6MB 410ms 0ms rustc 1.85.1
csharp 1.cs 4092ms 4.1ms 18.5MB 4070ms 10ms dotnet/aot 9.0.202
csharp 1.cs 4965ms 21ms 37.6MB 4930ms 20ms dotnet 9.0.202

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 34ms 1.7ms 2.9MB 27ms 0ms rustc 1.85.1
rust 2.rs 77ms 0.9ms 3.0MB 70ms 0ms rustc 1.85.1
csharp 1.cs 680ms 1.8ms 14.5MB 660ms 3ms dotnet/aot 9.0.202
csharp 1.cs 860ms 2.1ms 33.9MB 840ms 13ms dotnet 9.0.202

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 3-im.rs 410ms 2.4ms 2.1MB 1577ms 0ms rustc 1.85.1
rust 5-m.rs 571ms 5.2ms 2.0MB 2193ms 0ms rustc 1.85.1
rust 2-im.rs 627ms 5.5ms 2.0MB 2410ms 0ms rustc 1.85.1
rust 1-m.rs 977ms 9.9ms 2.1MB 3773ms 0ms rustc 1.85.1
rust 3-i.rs 1500ms 2.2ms 1.9MB 1490ms 0ms rustc 1.85.1
rust 2-i.rs 1760ms 2.0ms 1.8MB 1750ms 0ms rustc 1.85.1
rust 1.rs 2692ms 5.3ms 1.8MB 2683ms 0ms rustc 1.85.1

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 3-im.rs 38ms 0.2ms 2.1MB 123ms 0ms rustc 1.85.1
rust 5-m.rs 55ms 2.1ms 2.0MB 177ms 0ms rustc 1.85.1
rust 2-im.rs 60ms 0.2ms 2.1MB 200ms 0ms rustc 1.85.1
rust 1-m.rs 87ms 1.2ms 2.1MB 310ms 0ms rustc 1.85.1
rust 3-i.rs 126ms 1.6ms 1.9MB 120ms 0ms rustc 1.85.1
rust 2-i.rs 150ms 1.0ms 1.8MB 140ms 0ms rustc 1.85.1
rust 1.rs 229ms 0.4ms 1.8MB 220ms 0ms rustc 1.85.1

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 5c-m.rs 90ms 0.3ms 3.2MB 263ms 0ms rustc 1.85.1
rust 5-m.rs 95ms 0.8ms 3.2MB 290ms 0ms rustc 1.85.1
csharp 5-m.cs 128ms 3.9ms 25.0MB 347ms 97ms dotnet/aot 9.0.202
rust 6.rs 143ms 0.2ms 1.9MB 133ms 0ms rustc 1.85.1
rust 1c.rs 163ms 1.1ms 1.9MB 153ms 0ms rustc 1.85.1
csharp 5-m.cs 194ms 5.8ms 38.8MB 470ms 120ms dotnet 9.0.202
rust 1.rs 195ms 0.5ms 1.9MB 183ms 0ms rustc 1.85.1
csharp 5-m.cs 253ms 7.3ms 45.3MB 683ms 137ms mono 6.12.0

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 5c-m.rs 16ms 0.3ms 3.2MB 23ms 0ms rustc 1.85.1
rust 5-m.rs 17ms 0.6ms 3.3MB 30ms 0ms rustc 1.85.1
rust 6.rs 17ms 0.8ms 1.9MB 10ms 0ms rustc 1.85.1
rust 1c.rs 19ms 0.1ms 1.9MB 10ms 0ms rustc 1.85.1
rust 1.rs 22ms 0.4ms 1.9MB 10ms 0ms rustc 1.85.1
csharp 5-m.cs 25ms 0.3ms 16.0MB 33ms 13ms dotnet/aot 9.0.202
csharp 5-m.cs 63ms 3.1ms 37.1MB 87ms 20ms dotnet 9.0.202
csharp 5-m.cs 73ms 2.6ms 32.0MB 103ms 23ms mono 6.12.0

http-server

Input: 3000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1-m.rs 290ms 60ms 84.0MB 173ms 503ms rustc 1.85.1
rust 2-m.rs 364ms 16ms 70.9MB 253ms 867ms rustc 1.85.1
rust 1-http2.rs 379ms 64ms 58.0MB 867ms 423ms rustc 1.85.1
rust 2-http2.rs 467ms 58ms 64.2MB 1067ms 527ms rustc 1.85.1
csharp 2-http2.cs 519ms 5.0ms 108.6MB 747ms 143ms dotnet 9.0.202
csharp 2-m.cs 607ms 21ms 141.6MB 753ms 557ms dotnet 9.0.202
csharp 2-http3.cs 677ms 3.9ms 143.1MB 1103ms 263ms dotnet 9.0.202
csharp 1-m.cs 752ms 8.4ms 176.0MB 1153ms 747ms dotnet 9.0.202

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1-m.rs 42ms 3.1ms 15.8MB 17ms 57ms rustc 1.85.1
rust 2-m.rs 81ms 7.9ms 21.8MB 27ms 167ms rustc 1.85.1
rust 1-http2.rs 187ms 57ms 23.3MB 443ms 180ms rustc 1.85.1
rust 2-http2.rs 224ms 48ms 25.5MB 577ms 187ms rustc 1.85.1
csharp 2-m.cs 361ms 10ms 87.5MB 397ms 183ms dotnet 9.0.202
csharp 1-m.cs 385ms 6.8ms 97.4MB 533ms 217ms dotnet 9.0.202
csharp 2-http2.cs 451ms 1.8ms 86.1MB 493ms 100ms dotnet 9.0.202
csharp 2-http3.cs 498ms 9.0ms 93.5MB 590ms 110ms dotnet 9.0.202

json-serde

Input: sample 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 5-i.rs 30ms 1.2ms 9.8MB 13ms 3ms rustc 1.85.1
rust 4-i.rs 34ms 2.7ms 7.9MB 23ms 0ms rustc 1.85.1
rust 3.rs 61ms 1.3ms 32.0MB 40ms 10ms rustc 1.85.1
rust 2.rs 62ms 1.6ms 33.8MB 37ms 13ms rustc 1.85.1
rust 1.rs 103ms 1.3ms 67.4MB 70ms 20ms rustc 1.85.1
csharp 2.cs 309ms 3.1ms 69.0MB 280ms 27ms dotnet 9.0.202
csharp 1.cs 717ms 4.5ms 143.8MB 737ms 90ms dotnet 9.0.202

Input: canada 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 5-i.rs 208ms 3.5ms 52.6MB 187ms 7ms rustc 1.85.1
rust 4-i.rs 257ms 1.3ms 53.6MB 203ms 37ms rustc 1.85.1
rust 2.rs 404ms 1.3ms 237.6MB 300ms 90ms rustc 1.85.1
rust 3.rs 412ms 3.5ms 237.6MB 303ms 97ms rustc 1.85.1
rust 1.rs 698ms 3.3ms 550.2MB 457ms 230ms rustc 1.85.1
csharp 2.cs 1489ms 10ms 236.1MB 1653ms 90ms dotnet 9.0.202
csharp 1.cs 2784ms 150ms 741.8MB 3287ms 450ms dotnet 9.0.202

knucleotide

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 8-m.rs 226ms 1.7ms 26.7MB 670ms 10ms rustc 1.85.1
csharp 6-m.cs 455ms 5.5ms 46.4MB 1213ms 20ms dotnet/aot 9.0.202
rust 8.rs 469ms 8.7ms 22.5MB 447ms 7ms rustc 1.85.1
csharp 6-m.cs 762ms 49ms 68.5MB 2093ms 33ms dotnet 9.0.202
csharp 6-m.cs 1027ms 49ms 70.1MB 2953ms 23ms mono 6.12.0

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 8-m.rs 30ms 1.9ms 16.0MB 60ms 0ms rustc 1.85.1
rust 8.rs 60ms 0.6ms 11.4MB 50ms 0ms rustc 1.85.1
csharp 6-m.cs 89ms 1.8ms 36.6MB 147ms 13ms dotnet/aot 9.0.202
csharp 6-m.cs 179ms 7.8ms 57.9MB 277ms 27ms dotnet 9.0.202
csharp 6-m.cs 194ms 1.2ms 50.4MB 380ms 17ms mono 6.12.0

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 0-unsafe.rs 39ms 9.6ms 1.8MB 30ms 0ms rustc 1.85.1
rust 1.rs 47ms 2.9ms 2.0MB 40ms 0ms rustc 1.85.1
csharp 2.cs 96ms 1.4ms 9.9MB 80ms 0ms dotnet/aot 9.0.202
csharp 2.cs 151ms 1.3ms 21.1MB 137ms 0ms mono 6.12.0
csharp 2.cs 252ms 3.5ms 29.5MB 237ms 10ms dotnet 9.0.202
csharp 1.cs 1047ms 8.8ms 13.1MB 1030ms 3ms dotnet/aot 9.0.202
csharp 1.cs 1338ms 47ms 32.4MB 1330ms 10ms dotnet 9.0.202
csharp 1.cs 3356ms 34ms 45.5MB 3303ms 40ms mono 6.12.0

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 0-unsafe.rs 155ms 14ms 1.9MB 147ms 0ms rustc 1.85.1
rust 1.rs 187ms 18ms 2.0MB 180ms 0ms rustc 1.85.1
csharp 2.cs 273ms 2.6ms 9.6MB 260ms 0ms dotnet/aot 9.0.202
csharp 2.cs 361ms 2.6ms 22.6MB 350ms 0ms mono 6.12.0
csharp 2.cs 405ms 5.7ms 29.4MB 390ms 10ms dotnet 9.0.202
csharp 1.cs 3129ms 26ms 13.1MB 3100ms 13ms dotnet/aot 9.0.202
csharp 1.cs 3666ms 77ms 33.0MB 3643ms 20ms dotnet 9.0.202
csharp 1.cs timeout 0.0ms 45.6MB 4947ms 47ms mono 6.12.0

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 0-unsafe.rs 22ms 0.3ms 1.8MB 13ms 0ms rustc 1.85.1
rust 1.rs 30ms 0.7ms 1.9MB 20ms 0ms rustc 1.85.1
csharp 2.cs 54ms 0.1ms 9.8MB 40ms 0ms dotnet/aot 9.0.202
csharp 2.cs 94ms 2.2ms 22.8MB 80ms 0ms mono 6.12.0
csharp 2.cs 167ms 1.7ms 29.3MB 147ms 10ms dotnet 9.0.202
csharp 1.cs 1640ms 13ms 32.5MB 1623ms 10ms dotnet 9.0.202
csharp 1.cs 1819ms 22ms 12.9MB 1797ms 0ms dotnet/aot 9.0.202
csharp 1.cs 1822ms 11ms 28.8MB 1810ms 0ms mono 6.12.0

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 566ms 11ms 120.7MB 500ms 93ms dotnet/aot 9.0.202
csharp 1.cs 614ms 8.4ms 150.1MB 553ms 133ms dotnet/aot 9.0.202
csharp 2.cs 668ms 5.9ms 137.7MB 627ms 87ms dotnet 9.0.202
csharp 1.cs 751ms 3.6ms 165.4MB 690ms 133ms dotnet 9.0.202
rust 1.rs 763ms 45ms 33.8MB 737ms 10ms rustc 1.85.1
csharp 1.cs 1334ms 44ms 144.1MB 1567ms 170ms mono 6.12.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
csharp 2.cs 137ms 4.4ms 58.4MB 100ms 40ms dotnet/aot 9.0.202
rust 1.rs 153ms 2.9ms 9.8MB 143ms 0ms rustc 1.85.1
csharp 1.cs 159ms 9.7ms 74.8MB 123ms 50ms dotnet/aot 9.0.202
csharp 2.cs 256ms 2.1ms 74.6MB 227ms 37ms dotnet 9.0.202
csharp 1.cs 267ms 5.4ms 69.4MB 240ms 33ms mono 6.12.0
csharp 1.cs 281ms 2.4ms 91.4MB 240ms 70ms dotnet 9.0.202

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 311ms 3.9ms 40.9MB 297ms 0ms rustc 1.85.1
csharp 1.cs 313ms 13ms 78.8MB 293ms 7ms dotnet/aot 9.0.202
rust 2.rs 315ms 2.5ms 6.6MB 303ms 0ms rustc 1.85.1
csharp 1.cs 365ms 3.4ms 96.3MB 340ms 17ms dotnet 9.0.202
csharp 2.cs 402ms 3.3ms 35.7MB 380ms 10ms dotnet 9.0.202
csharp 2.cs 430ms 1.1ms 17.5MB 413ms 0ms dotnet/aot 9.0.202
csharp 1.cs 559ms 12ms 83.9MB 537ms 10ms mono 6.12.0
csharp 2.cs 1863ms 8.1ms 29.4MB 1847ms 0ms mono 6.12.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 63ms 2.3ms 11.6MB 53ms 0ms rustc 1.85.1
csharp 1.cs 65ms 4.9ms 24.8MB 50ms 0ms dotnet/aot 9.0.202
rust 2.rs 77ms 0.9ms 2.9MB 70ms 0ms rustc 1.85.1
csharp 1.cs 102ms 1.4ms 42.4MB 80ms 10ms dotnet 9.0.202
csharp 2.cs 108ms 1.8ms 11.9MB 93ms 0ms dotnet/aot 9.0.202
csharp 2.cs 129ms 2.3ms 30.0MB 110ms 10ms dotnet 9.0.202
csharp 1.cs 147ms 2.7ms 38.3MB 130ms 3ms mono 6.12.0
csharp 2.cs 486ms 4.8ms 21.1MB 470ms 3ms mono 6.12.0

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 1524ms 4.2ms 2.7MB 1303ms 203ms rustc 1.85.1
rust 2.rs 1708ms 4.8ms 2.6MB 1630ms 67ms rustc 1.85.1
csharp 1.cs 3238ms 14ms 13.9MB 3137ms 97ms dotnet/aot 9.0.202
csharp 1.cs 3641ms 68ms 38.0MB 3640ms 113ms dotnet 9.0.202

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 1.rs 324ms 4.6ms 2.4MB 297ms 13ms rustc 1.85.1
rust 2.rs 383ms 6.3ms 2.4MB 373ms 0ms rustc 1.85.1
csharp 1.cs 756ms 7.3ms 13.5MB 720ms 23ms dotnet/aot 9.0.202
csharp 1.cs 998ms 15ms 37.6MB 1087ms 33ms dotnet 9.0.202

regex-redux

Input: 2500000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 7.rs 445ms 11ms 77.5MB 463ms 17ms rustc 1.85.1
csharp 6.cs 1762ms 13ms 420.4MB 1653ms 160ms dotnet/aot 9.0.202
csharp 5.cs 2063ms 24ms 445.4MB 2100ms 187ms dotnet 9.0.202
csharp 6.cs 2732ms 51ms 441.4MB 2680ms 177ms dotnet 9.0.202
csharp 5.cs 4329ms 64ms 419.8MB 4230ms 153ms dotnet/aot 9.0.202

Input: 250000_in

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 7.rs 49ms 0.9ms 12.4MB 40ms 0ms rustc 1.85.1
csharp 6.cs 190ms 3.1ms 47.4MB 167ms 13ms dotnet/aot 9.0.202
csharp 5.cs 294ms 7.6ms 72.7MB 267ms 33ms dotnet 9.0.202
csharp 6.cs 393ms 5.1ms 69.8MB 357ms 33ms dotnet 9.0.202
csharp 5.cs 455ms 10ms 48.0MB 433ms 17ms dotnet/aot 9.0.202

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 0.rs 120ms 2.0ms 1.9MB 110ms 0ms rustc 1.85.1
rust 1.rs 1453ms 31ms 1.9MB 1443ms 0ms rustc 1.85.1
csharp 1.cs 2839ms 5.3ms 13.1MB 2797ms 33ms dotnet/aot 9.0.202
csharp 1.cs 2979ms 42ms 35.4MB 3047ms 40ms dotnet 9.0.202

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
rust 0.rs 33ms 1.0ms 1.8MB 23ms 0ms rustc 1.85.1
rust 1.rs 365ms 3.7ms 1.9MB 357ms 0ms rustc 1.85.1
csharp 1.cs 728ms 13ms 13.0MB 707ms 10ms dotnet/aot 9.0.202
csharp 1.cs 999ms 4.6ms 34.1MB 1083ms 20ms dotnet 9.0.202