Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevglass/mutative-performance-sample
https://github.com/kevglass/mutative-performance-sample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevglass/mutative-performance-sample
- Owner: kevglass
- Created: 2024-03-11T20:38:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-20T08:42:28.000Z (6 months ago)
- Last Synced: 2024-06-21T21:05:12.312Z (6 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Quick sample test mutative performance compared to undrafted objects.
Theres a mock physics library that just moves balls around random and detects collisions. By default there are 30 balls floating around in the simulation.
The test runs raw modifications, then raw modifications with a copy at each iteration, then mutative iterations.
From my Mac M1:
```
RAW : 5000 iterations @15ms (0.003 per loop)
RAW+COPY: 5000 iterations @270ms (0.054 per loop)
MUTATIVE: 5000 iterations @4767ms (0.9534 per loop)
```Looking for performance tips on mutative now.