Your mileage will vary depending on your hardware. Tests were performed using a mechanica  l disk but the underlying principles should be consistent w

Writing Fast to Disk in C++

submited by
Style Pass
2021-09-27 19:30:05

Your mileage will vary depending on your hardware. Tests were performed using a mechanica l disk but the underlying principles should be consistent with most drives. Each test program creates a single vector containing a large amount of data which “random” chunks between 1byte and 1kilobyte are then selected from until 1GB has been written, this may represent your usage well, it may not, but it is relatively consistent. The original purpose was to simulate something that looked similar to video data being streamed from a camera. The code is available here.

Leave a Comment