0% found this document useful (0 votes)
1 views2 pages

Buffer vs String Throughput Analysis

This document summarizes the results of benchmark tests measuring file read throughput using different chunk sizes, buffer sizes, and read methods. It shows that using larger chunk and buffer sizes with the buffer read method achieved the highest throughput, reaching over 160 MiB/sec. String-based reading had lower throughput, around 80 MiB/sec. A graph compares the throughput of buffer versus string reading as chunk size increases, illustrating that buffer reading consistently outperformed string reading.

Uploaded by

a4agarwal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Buffer vs String Throughput Analysis

This document summarizes the results of benchmark tests measuring file read throughput using different chunk sizes, buffer sizes, and read methods. It shows that using larger chunk and buffer sizes with the buffer read method achieved the highest throughput, reaching over 160 MiB/sec. String-based reading had lower throughput, around 80 MiB/sec. A graph compares the throughput of buffer versus string reading as chunk size increases, illustrating that buffer reading consistently outperformed string reading.

Uploaded by

a4agarwal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODS, PDF, TXT or read online on Scribd

Sheet1

10,000 Runs 1 MiB File


Time KiB/sec MiB/sec Chunk Size (KiB) Buf Size (KiB) Method
96.312 106341.72 103.8493359 4 64 Buf
75.519 135620.61 132.442002 32 64 Buf
63.281 161848.39 158.0550684 64 64 Buf
65.012 157540.43 153.8480762 64 128 Buf
60 168669.92 164.7167188 64 256 Buf
64 159862 156.1152344 64 1024 Buf
59.985 170742.06 166.740293 128 128 Buf
61.47 166617 162.7119141 160 160 Buf
81.099 126289.76 123.3298438 256 256 Buf
130.6 78388.08 76.55085938 4 Str
99 103422.94 100.9989648 32 Str
119.841 85464.82 83.46173828 64 Str

Buffers and Throughput


Comparison of Buffer vs String throughput
180
160
140
Throughput (MiB / Sec)

120
Buf
100
Str
80
60
40
20
0
0 50 100 150 200 250 300

Read Chunk Size (KiB)

Page 1
Sheet1

Buf
Str

300

Page 2

You might also like