ABCDE
1
Slice type (16777216 elements)Create elements and insertion into slice
2
Nano secondsBytes
3
Struct129347993134217728
4
Struct but two way assignment463033044268435464
5
Pointer to a struct558101324268435463
6
No Pointers40417179134217728
7
8
9
Time differences (% less time row type over column type)Struct
Struct but two way assignment
Pointer to a structNo Pointers
10
Struct72.07%76.82%-220.03%
11
Struct but two way assignment-257.97%17.03%-1045.63%
12
Pointer to a struct-331.47%-20.53%-1280.85%
13
No Pointers68.75%91.27%92.76%
14
15
Memory differences (% less Bytes row type over column type)
Struct
Struct but two way assignment
Pointer to a structNo Pointers
16
Struct50.00%50.00%0.00%
17
Struct but two way assignment-100.00%0.00%-100.00%
18
Pointer to a struct-100.00%0.00%-100.00%
19
No Pointers0.00%50.00%50.00%
20
21
In graphsCPU (seconds)
memory allocation space (GB)
22
Struct11.4512.62
23
Struct but two way assignment11.267.73
24
Pointer to a struct6.835.26
25
No Pointers10.0750.12
26
27
Results from graphs per iterationNum iterationsCPU (nano seconds)
memory allocation space (Bytes)
28
Struct100114500000126200000
29
Struct but two way assignment30375333333257666667
30
Pointer to a struct20341500000263000000
31
No Pointers30033566667167066667