Skip to content

NotBad4U/dod_cell_system

Repository files navigation

Benchmark Data-Oriented Entity System

Thanks to ooflorent for the benchs review and his help.

Benches

Here are the result on my Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz. I use a node 9.3.0 version. The benchmark run with 1 000 000 of cells and 1000 update on them.

Execution time

You can get the execution time of the two program with the time UNIX command e.g.:

  • time node cell_system.js

  • time node cell_system_optimised.js

Profile them with node profiler

node --prof cell_system.js

node --prof cell_system_optimised.js

And then read the *.log with prof-process to analyse them.

node --prof-process your.log

Perf

Measure the cache hit/miss and cpu time of the program

perf stat cell_system.js

perf stat -e cache_misses, L1-dcache-load-misses cell_system.js

About

Benchmarks of a Data-Oriented Entity System approach

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published