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

Also benchmark in debug mode #14

Open
@martin-t

Description

@martin-t

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions