tuzz / legion-ecs-wasm-benchmark

A test page that can be used to measure how long Legion ECS takes to create/update some entities.

Home Page:https://tuzz.github.io/legion-ecs-wasm-benchmark/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legion WASM Benchmark

This is a test page that can be used to measure how long it takes Legion to create some entities and add components for a varying number of entities. I created this page because I'm seeing very different times between my 13" MacBook Pro 2017 (2.5GHz i7) and my 11" iPad Pro 2018. You can run the benchmark here.

On the PSPDFKit benchmark my scores are:

  • MacBook Pro: 2512
  • iPad Pro: 1500

This implies the iPad Pro is faster at WASM as a lower score is better.

On this benchmark my combined times for ~2 million entities are:

  • MacBook Pro: ~118ms
  • iPad Pro: ~2676ms

In this benchmark, the iPad is ~23x slower than the MacBook so I've opened an issue on the Legion ECS project to try and understand why this is. For anyone wondering, this page was created using my minimal-rust-wasm template.

About

A test page that can be used to measure how long Legion ECS takes to create/update some entities.

https://tuzz.github.io/legion-ecs-wasm-benchmark/


Languages

Language:JavaScript 79.1%Language:Rust 10.6%Language:Shell 8.7%Language:HTML 1.6%