Skip to content

fireveined/ecs-benchmark-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECS Benchmark

It's just simple benchmark of 4 JS/TS ECS frameworks:

Scenarios

I tried to create life-like scenarios:

  1. Repeatedly create entities and update systems
  2. Repeatedly create/delete entities and update systems
  3. Repeatedly create/delete entities, remove components from them and update systems

Each scenario operates on 4000 entities, 4 components and 3 systems.

Results

perform-ecs yagl tiny-ecs makr
Scenario 1 43ms 242ms 64ms 208ms
Scenario 2 27ms 142ms 98ms 109ms
Scenario 3 23ms 184ms 80ms 79ms

In all scenarios perform-ecs is the fastest framework.

How to run

Clone and: npm i && npm start

If you have idea for new framework to add feel free to create issue.

About

Benchmark of JavaScript/TypeScript ECS frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published