Skip to content

Specs faster than Bevy for numerical simulation? #2

Open
@ElliotB256

Description

@ElliotB256

I'm using the two examples listed in this repo. Stats are for 1a6b9fd.

The minimal example consists of a velocity-verlet integration of non-interacting particles in a harmonic trap. It consists of three systems: (i) integrate position, (ii) update force, (iii) integrate velocity. The benchmark integrates the following particle numbers for N steps:

pub const PARTICLE_NUMBER : i32 = 100_000;
pub const STEP_NUMBER : i32 = 1_000;

I'm performing my profiling on a workstation with an i7-8700 CPU, which has 6 cores and 12 threads. The profiling is performed using Intel VTune, Microarchitecture Exploration runs.

Results

My tests show bevy currently underperforms specs by at least an order of magnitude.

Total time

bevy: 7.417s

specs: 0.576s

CPU Load

bevy:
image

specs:
image

Core Utilisation

bevy:
image

specs:
image

Summary

bevy:
image

specs:
image

Disclaimer

I might well be an idiot. It's my first time using bevy, there could be something very obviously incorrect with this. I'd still be grateful to hear that :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions