Delphi and Free Pascal bencmark: array vs TList vs dynamic array
Let's perform a simple benchmark testing the random and sequential access to arrays and lists. I would like to compare:
- static array with predefined size (allocated on stack)
TList
container class (allocated on heap)- dynamic array (allocated on heap)
- generic Delphi
TList
or Free PascalTFPGList
(allocated on heap)
I …