Skip to content

Commit 02fd98d

Browse files
committed
Improve benchmarks
1 parent 4d8bbb5 commit 02fd98d

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

benchmarks/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Benchmarks
2-
Welcome to Nova Physics benchmarks
2+
All benchmarks were run on a Windows 10, Intel i5 6th gen machine.
33

4-
<img src="https://raw.githubusercontent.com/kadir014/nova-physics/main/benchmarks/assets/bench_balls.png">
4+
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.
55

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

8-
<img src="https://raw.githubusercontent.com/kadir014/nova-physics/main/benchmarks/assets/bench_mixed.png">
8+
9+
10+
## Mixer (`mixer.c`)
11+
| Physics Engine | Average physics time (ms) |
12+
|----------------------|---------------------------|
13+
| Nova Physics `0.5.1` | 23.65 |
14+
| Box2D `2.3.1` | 10.90 |
15+
| Chipmunk2D `7.0.3` | 4.33 |

benchmarks/assets/bench_balls.png

-319 KB
Binary file not shown.

benchmarks/assets/bench_boxes.png

-291 KB
Binary file not shown.

benchmarks/assets/bench_mixed.png

-295 KB
Binary file not shown.

0 commit comments

Comments
 (0)