Skip to content

解决文件读写问题

何凌枫 edited this page Aug 14, 2018 · 1 revision

文件读写效率测试

time dd if=/dev/zero of=test.dat bs=1024 count=100000
time dd of=/dev/null if=test.dat bs=1024 count=100000

stable 版本

  • 读:350m/s
  • 写:4m/s

edge 版本(:cached)

  • 读:900m/s
  • 写:5m/s

docker-sync 工具

  • 读:1 G/s
  • 写:500m/s

Run your application at full speed while syncing your code for development, finally empowering you to utilize docker for development under OSX/Windows/Linux*

Developing with docker under OSX/ Windows is a huge pain, since sharing your code into containers will slow down the code-execution about 60 times (depends on the solution). Testing and working with a lot of the alternatives made us pick the best of those for each platform, and combine this in one single tool: docker-sync

安装 docker-sync

$ gem install docker-sync