The actual size of the file is 30,600,671,232 bytes (size on disk) or ~31GB
Created file with 1000000000 measurements in 8544.91518115997314453125 ms
Also the total time units are wrong, it should be 8544 seconds, not miliseconds
The script ran for ~2h 24min on:
cpu -> Ryzen 1700 @3.2GHz
ram -> 32GB DDR4-3600 RAM
storage -> RAID1 with 4x HDDs 7200rpm
os -> Windows 10 x64 latest updates
phpver -> PHP 8.3.2 (cli) (built: Jan 16 2024 20:47:57) (ZTS Visual C++ 2019 x64)