Skip to content

Amavect/dodattempt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program analyzes the difference between Object Oriented, Prodedural, Inline-Procedural, and Data Oriented.

The program represents many structures with a position and velocity, with the position being updated every second for loops seconds.

For count = 1024 and loops = 100000 Running go test ./oop ./pro ./inl ./dod -v gives the following times:

  • OOP: 0.75 s
  • PRO: 0.72 s
  • INL: 0.49 s
  • DOD: 0.45 s

A huge speedup, just by passing a slice of structs into a function. It's even slightly faster than inline-procedural. Cache magic!

About

Analysis of 3 different paradigms, including Data Oriented Design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages