Skip to content

Repository files navigation

THIS PROJECT IS DEPRECATED

A slighly more advanced Benchmark with newer runtimes can be found here: https://github.com/stefan-schweiger/bakkBenchmark

Current state of mono-wasm/Blazor performance

Benchmark Information

The Benchmark is currently very simple and only does the following things:

  • Generate 5,000,000 random list elements (from 0.0 to 1.0)
  • Sort the list by their values
  • Get Q1, Median, Q3 and calculate average and standard deviation

Platform Information

The Benchmark was implemented in the following languages/platforms:

  • .NET Core 2.1.300 (preview2-008533)
  • mono-wasm (commit a14f41c from Blazor 0.3.0)
  • C (gcc 4.2.1)
  • C-wasm (emcc 1.37.36)
  • JavaScript (TypeScript 2.8.1)
  • Bride.NET (17.0.0)
  • mono --interpreter (5.10.1)

mono-wasm with AOT was also attempted, but the project seems not to developed in the open and resulted in either compilation or JIT errors when running.

The .NET Projects where build with Release configuration and the C Projects with -O3 optimizations.

Results

Chrome 65

CC.WasmDotNet.ConsoleDotNet.WasmJavaScriptBridge.NetMono Interpreter
Generate61.00ms25.00ms66.92ms7,016.50ms213.40ms282.00ms1,577.14ms
Sort529.00ms847.00ms600.32ms26,806.00ms898.50ms1,002.00ms5,510.68ms
Calculate10.68ms13.00ms15.31ms1,405.40ms18.20ms22.00ms274.37ms
600.68ms885.00ms682.55ms35,227.90ms1,130.10ms1,306.00ms7,362.19ms

Benchmark Chart

Firefox 60

CC.WasmDotNet.ConsoleDotNet.WasmJavaScriptBridge.NetMono Interpreter
Generate61.00ms57.00ms66.92ms4,413.00ms143.00ms785.00ms1,577.14ms
Sort529.00ms847.00ms600.32ms19,861.00ms901.00ms1,057.00ms5,510.68ms
Calculate10.68ms42.00ms15.31ms1,001.00ms14.00ms24.00ms274.37ms
600.68ms946.00ms682.55ms25,275.00ms1,058.00ms1,866.00ms7,362.19ms

Benchmark Chart

About

Little Benchmark comparing .NET Core, Mono, mono-wasm and JS

Resources

Stars

17 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages