Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Also benchmark in debug mode #14

Open
martin-t opened this issue Nov 1, 2020 · 0 comments
Open

Also benchmark in debug mode #14

martin-t opened this issue Nov 1, 2020 · 0 comments

Comments

@martin-t
Copy link

martin-t commented Nov 1, 2020

Rust is notorious for slow compile times so i suspect many devs use debug builds most of the time. If an ECS is fast with optimizations but unusably slow without them, it would be good to find out early. For example, in my unscientific expriments, hecs and legion were about the same in release mode but legion was several times slower is debug mode (don't have exact numbers anymore).

I suggest this bench suite should test 3 configurations:

  • Everything in release mode (this is what it does currently I believe)
  • Everything in debug mode
  • Deps (which in normal usage change infrequently) in release mode but the main crate (typically the gamelogic which changes often) in debug mode - this is what macroquad suggests (expand Tips):
[profile.dev.package.'*']
opt-level = 3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant