Created
February 21, 2018 14:32
-
-
Save theor/7bc34347cb42153cb871b6d3f856d397 to your computer and use it in GitHub Desktop.
Factorio-like conveyor belts benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100x100 belts, 100x10 items, move_system only: | |
243 ns/iter (+/- 18) empty system | |
43,542,818 ns/iter (+/- 3,215,204) foreach belts { foreach items { | |
10,884,685 ns/iter (+/- 2,657,142) foreach items { belts.par_join().for_each() { | |
42,826 ns/iter (+/- 5,720) foreach belt { foreach item in belt.items { | |
83,712 ns/iter (+/- 12,581) per belt items list, parallel mutex | |
132,643 ns/iter (+/- 30,206) lazy update, add component to items with the computed velocity/position |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment