Measurements are per operation. Measurements for bulk operations are scaled to the number of entities. To minimize the impact of scheduling and improve reproducibility, each measurement is done N times, for which the minimum and average time are calculated. The minimum time is the most reproducible, as this is the time with the least impact from the OS scheduler. As the times for most operations are measured in nanoseconds, each measurement measures an operation executed many times (typically 1 million). This minimizes the impact of clock accuracy issues and the overhead of measuring time.
ns = nanoseconds, us = microseconds, ms = milliseconds
| Entity creation | Min | Avg |
|---|---|---|
| flecs.new_id | 9.459 ns | 11.009 ns |
| flecs.new_id_recycle | 2.763 ns | 3.198 ns |