Posted: Mon May 25, 2009 12:31 am
I tough you were testing which value for SetFileBuffer would fit best, i read too fast.
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
GetSystemInfo_ (info.SYSTEM_INFO)
Debug info\dwAllocationGranularity
dwAllocationGranularity
The granularity with which virtual memory is allocated.
For example, a VirtualAlloc request to allocate 1 byte will reserve an address space of dwAllocationGranularity bytes.
This value was hard coded as 64 KB in the past, but other hardware architectures may require different values.
Code: Select all
Speed MB/s (higher is better)
1KB=20.97%
2KB=35.34%
4KB=52.02%
8KB=63.78%
16KB=77.99%
32KB=91.66%
64KB=100.00%
128KB=107.54%
256KB=112.53%
512KB=115.84%
1024KB=119.00%
CPU load (lower is better)
1KB=100.00%
2KB=99.39%
4KB=82.55%
8KB=63.57%
16KB=47.14%
32KB=36.03%
64KB=29.15%
no idea why it stops here, maybe he didn't do CPU data for higher or higher was not that much different fro 64?
Code: Select all
1KB=100.0% (higher is better)
2KB=50.0%
4KB=25.0%
8KB=12.5%
16KB=6.25%
32KB=3.125%
64KB=1.5625%
Code: Select all
CPU load (higher is better)
1KB=29.15%
2KB=29.35%
4KB=35.31%
8KB=45.85%
16KB=61.83%
32KB=80.89%
64KB=100.00%
Code: Select all
1KB=49.67%
2KB=38.00%
4KB=37.33%
8KB=40.17%
16KB=48.08%
32KB=58.04%
64KB=67.19%
Code: Select all
Readspeed Test v2.7
The baseline is the slowest chunksize, and shown as 100.00 %
Based on 40 files and 1971.88 MB of data (processed 35493.81).
Test took 4.167 minutes, speed was 141.98 MB/s (1135.80 mbit/s).
16384 chunksize speed = 100.00 %
32768 chunksize speed = 8212.85 %
65536 chunksize speed = 9774.52 %
131072 chunksize speed = 10796.36 %
262144 chunksize speed = 10857.99 %
524288 chunksize speed = 10705.21 %
1048576 chunksize speed = 10904.68 %
2097152 chunksize speed = 10695.17 %
4194304 chunksize speed = 8453.15 %
Code: Select all
Readspeed Test v2.7
---------------------------
The baseline is the slowest chunksize, and shown as 100.00 %
Based on 40 files and 1971.88 MB of data (processed 35493.81).
Test took 0.400 minutes, speed was 1478.91 MB/s (11831.27 mbit/s).
16384 chunksize speed = 100.00 %
32768 chunksize speed = 124.15 %
65536 chunksize speed = 146.89 %
131072 chunksize speed = 163.44 %
262144 chunksize speed = 165.81 %
524288 chunksize speed = 161.43 %
1048576 chunksize speed = 165.41 %
2097152 chunksize speed = 163.36 %
4194304 chunksize speed = 126.58 %