Just made an test app that creates a lot of Button components with a loop and calculates the execution time with Clock.
Test 1
Platform: Companion / Kodular
Measured with: inbuilt Clock component
Created: “Button” component with default properties
Component Count | Created in (as seconds) | Created in (as milliseconds) |
---|---|---|
100 | 0 sec | 535 ms |
200 | 1 sec | 1387 ms |
500 | 3 secs | 3718 ms |
1000 | 6 secs | 6992 ms |
2000 | 12 secs | 12748 ms |
5000 | 36 secs | 36925 ms |
10000 | 73 secs | 73849 ms |
Test 2
Platform: Exported App / Kodular
Measured with: inbuilt Clock component
Created: “Button” component with default properties
Component Count | Created in (as seconds) | Created in (as milliseconds) |
---|---|---|
100 | 0 sec | 593 ms |
200 | 1 sec | 1079 ms |
500 | 2 secs | 2427 ms |
1000 | 6 secs | 6023 ms |
2000 | 12 secs | 12009 ms |
5000 | 25 secs | 25092 ms |
10000 | 64 secs | 64520 ms |
Note
Of course, the current running apps, available memory at the moment, device type etc can affect the execution time. It is just an amateur benchmark.