Skip to content

Commit

Permalink
Improve benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kadir014 committed Oct 26, 2023
1 parent 4d8bbb5 commit 02fd98d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Benchmarks
Welcome to Nova Physics benchmarks
All benchmarks were run on a Windows 10, Intel i5 6th gen machine.

<img src="https://raw.githubusercontent.com/kadir014/nova-physics/main/benchmarks/assets/bench_balls.png">
Chipmunk2D and Box2D tests are used as a baseline to see how Nova Physics has progress so far performance-wise. All benchmark scenes use the same configuration among all engines; 10 velocity and position iterations, 60Hz simulation.

<img src="https://raw.githubusercontent.com/kadir014/nova-physics/main/benchmarks/assets/bench_boxes.png">
Data points gathered for each benchmark includes 30,000 frames and shows how long it takes to simulate one step in milliseconds.

<img src="https://raw.githubusercontent.com/kadir014/nova-physics/main/benchmarks/assets/bench_mixed.png">


## Mixer (`mixer.c`)
| Physics Engine | Average physics time (ms) |
|----------------------|---------------------------|
| Nova Physics `0.5.1` | 23.65 |
| Box2D `2.3.1` | 10.90 |
| Chipmunk2D `7.0.3` | 4.33 |
Binary file removed benchmarks/assets/bench_balls.png
Binary file not shown.
Binary file removed benchmarks/assets/bench_boxes.png
Binary file not shown.
Binary file removed benchmarks/assets/bench_mixed.png
Binary file not shown.

0 comments on commit 02fd98d

Please sign in to comment.