Memory vs. Disk Access
- Read: Reading data from memory (RAM) is typically much faster than reading from disk. Memory access times are measured in nanoseconds, while disk access times are measured in milliseconds. This speed difference is due to the physical proximity of memory to the CPU and the lack of mechanical components in memory.
- Write: Writing data to disk involves physically moving a disk head to the correct location and waiting for the disk to rotate to the correct position. This process is slower than reading data from memory.
Is the read performance slow or the write performance?
Read Performance is often faster than Write Performance. Below are the reasons why Read Performance is faster than Write Performance