File access in mounted volumes extremely slow, CPU bound

I can add an extra data point here

OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta6
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Docker logs are being collected into /tmp/20160411-163541.tar.gz.
Your unique id in bugsnag is: CAE02A72-67BA-4BAA-B36D-E47B034A921B
Please quote this in all correspondence.

I have the following mount/volume defined for the container

/Mac/Users/pete/<path-to-project>:/var/www/html

And this is the output of mount | grep osx in the container

osxfs on /var/www/html type fuse.osxfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=32741)

For the same test suite comparing execution speed for docker+osxfs vs Virtualbox+NFS (average of 10 runs):

Test suite 1:

  • virtualbox: 2538ms
  • osxfs: 5187ms

Test suite 2:

  • virtualbox: 230ms
  • osxfs: 3810ms

API endpoint response times (approximate times given)

  • Virtualbox: Sub 100ms
  • osx: 6000 - 22000 ms
1 Like