Function empirical_test

Source
pub fn empirical_test()
Expand description

Illustrates that the for loop is the most efficient way to initialize an array with None values:

100x Default: 2.803µs None: 2.505µs For: 2.193µs

10000x Default: 212.307µs None: 205.76µs For: 178.989µs

100000000x Default: 2.285708255s None: 2.203727308s For: 1.947812524s