Skip to content

Instantly share code, notes, and snippets.

@kasperg
Created April 20, 2016 18:47
Show Gist options
  • Save kasperg/a3f257ce0ef57c439b5ec5bdf7988609 to your computer and use it in GitHub Desktop.
Save kasperg/a3f257ce0ef57c439b5ec5bdf7988609 to your computer and use it in GitHub Desktop.
Volume IO: Docker for Mac vs. Dlite - based on https://github.com/danquah/docker-php-fileperf
Volume-based
Performing 3 volume-based tests with 10000 files of 1KB
Run 1
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 25.92 ms
Got status of 10000 files in 2.01 ms
Read 10000 files in 5.46 ms
** Total duration: 33.39 **
Run 2
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 14.72 ms
Got status of 10000 files in 2.47 ms
Read 10000 files in 3.46 ms
** Total duration: 20.64 **
Run 3
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 7.46 ms
Got status of 10000 files in 1.02 ms
Read 10000 files in 5.23 ms
** Total duration: 13.7 **
Performing 3 volume-based tests with 1000 files of 10KB
Run 1
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 1.62 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.59 ms
** Total duration: 2.22 **
Run 2
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 1.54 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.51 ms
** Total duration: 2.06 **
Run 3
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 1.27 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.47 ms
** Total duration: 1.76 **
Performing 3 volume-based tests with 100 files of 100KB
Run 1
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.32 ms
Got status of 100 files in 0 ms
Read 100 files in 0.04 ms
** Total duration: 0.37 **
Run 2
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.29 ms
Got status of 100 files in 0 ms
Read 100 files in 0.03 ms
** Total duration: 0.32 **
Run 3
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.27 ms
Got status of 100 files in 0 ms
Read 100 files in 0.03 ms
** Total duration: 0.3 **
/Users/kasper/Code/docker-php-fileperf (master)$ ./run.sh
Using default tag: latest
latest: Pulling from danquah/php-fileperf
420890c9e918: Already exists
31a5a09e0543: Already exists
d22e6cb51c12: Already exists
42d1bf0f5e81: Already exists
a3ed95caeb02: Already exists
d5f11a6dba31: Already exists
8b95bb1992a6: Already exists
b8bfb3e680bd: Already exists
0d565109d96e: Already exists
2d5b8fc24025: Already exists
Digest: sha256:b778241351aed93821977ada61de0f87f20baa9d936a02ab35edb278018c0c49
Status: Image is up to date for danquah/php-fileperf:latest
Local
Performing 3 container-local tests with 10000 files of 1KB
Run 1
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 0.53 ms
Got status of 10000 files in 0.05 ms
Read 10000 files in 0.17 ms
** Total duration: 0.75 **
Run 2
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 0.47 ms
Got status of 10000 files in 0.06 ms
Read 10000 files in 0.16 ms
** Total duration: 0.69 **
Run 3
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 0.46 ms
Got status of 10000 files in 0.06 ms
Read 10000 files in 0.17 ms
** Total duration: 0.68 **
Performing 3 container-local tests with 1000 files of 10KB
Run 1
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 0.08 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.02 ms
** Total duration: 0.11 **
Run 2
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 0.09 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.02 ms
** Total duration: 0.11 **
Run 3
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 0.08 ms
Got status of 1000 files in 0.01 ms
Read 1000 files in 0.02 ms
** Total duration: 0.11 **
Performing 3 container-local tests with 100 files of 100KB
Run 1
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.04 ms
Got status of 100 files in 0 ms
Read 100 files in 0.01 ms
** Total duration: 0.05 **
Run 2
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.04 ms
Got status of 100 files in 0 ms
Read 100 files in 0.01 ms
** Total duration: 0.06 **
Run 3
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 0.04 ms
Got status of 100 files in 0 ms
Read 100 files in 0.01 ms
** Total duration: 0.05 **
Volume-based
Performing 3 volume-based tests with 10000 files of 1KB
Run 1
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 25.83 ms
Got status of 10000 files in 4.17 ms
Read 10000 files in 22.32 ms
** Total duration: 52.33 **
Run 2
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 27.24 ms
Got status of 10000 files in 5.25 ms
Read 10000 files in 29.72 ms
** Total duration: 62.22 **
Run 3
Creating 10000 files 1KB each in /storage, total size 10,000KB
Created 10000 files in 26.84 ms
Got status of 10000 files in 6.59 ms
Read 10000 files in 26.43 ms
** Total duration: 59.85 **
Performing 3 volume-based tests with 1000 files of 10KB
Run 1
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 5.81 ms
Got status of 1000 files in 0.48 ms
Read 1000 files in 2.64 ms
** Total duration: 8.93 **
Run 2
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 6.48 ms
Got status of 1000 files in 0.71 ms
Read 1000 files in 3.39 ms
** Total duration: 10.57 **
Run 3
Creating 1000 files 10KB each in /storage, total size 10,000KB
Created 1000 files in 5.12 ms
Got status of 1000 files in 0.49 ms
Read 1000 files in 2.7 ms
** Total duration: 8.3 **
Performing 3 volume-based tests with 100 files of 100KB
Run 1
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 3.63 ms
Got status of 100 files in 0.07 ms
Read 100 files in 0.46 ms
** Total duration: 4.15 **
Run 2
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 3.6 ms
Got status of 100 files in 0.06 ms
Read 100 files in 0.44 ms
** Total duration: 4.1 **
Run 3
Creating 100 files 100KB each in /storage, total size 10,000KB
Created 100 files in 4.02 ms
Got status of 100 files in 0.06 ms
Read 100 files in 0.48 ms
** Total duration: 4.56 **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment