Rust | C | C++ | |
---|---|---|---|
Initial buffer | file size or 1 MB | 16 KB | file size* |
Buffer growth | 8 KB | doubling | n/a |
Max read() | buffer size | 16 KB | 128 B |
Work unit | 2 KB | entire sequence | 64 KB |
* the C++ code crashes if the input is not a file
Rust | C | C++ | |
---|---|---|---|
Initial buffer | file size or 1 MB | 16 KB | file size* |
Buffer growth | 8 KB | doubling | n/a |
Max read() | buffer size | 16 KB | 128 B |
Work unit | 2 KB | entire sequence | 64 KB |
* the C++ code crashes if the input is not a file