Code Monkey home page Code Monkey logo

speedcopy's Introduction

speedcopy

Build Status

Patched python shutil.copyfile using xcopy on windows to accelerate transfer on windows shares.

Using xcopy on windows to server-side copy on network shares where enabled.

See https://wiki.samba.org/index.php/Server-Side_Copy

It is based on pyfastcopy so it should accelerate copying on linux too.

Those are benchmark values based on my local setup:

Windows copy / local storage

filesize (mb) python copy
1 0.003 0.067
2 0.005 0.067
4 0.010 0.068
8 0.020 0.073
16 0.042 0.079
32 0.088 0.092
64 1.925 1.200
128 0.366 0.169
256 0.754 0.277
512 1.622 0.505
1024 3.567 0.910
2048 7.242 2.607

Windows xcopy / local storage

filesize (mb) python xcopy
1 0.003 0.135
2 0.005 0.134
4 0.010 0.136
8 0.019 0.140
6 0.039 0.144
32 0.087 0.158
64 1.884 1.858
128 0.360 0.240
256 0.774 0.335
512 1.612 0.561
1024 3.575 1.199
2048 6.864 2.599

Windows xcopy / samba share

filesize (mb) python xcopy
1 0.070 0.153
2 0.144 0.157
4 0.298 0.163
8 0.623 0.167
16 1.181 0.176
32 2.385 0.195
64 49.040 2.437
128 8.846 0.306
256 17.135 2.954
512 30.407 4.422
1024 55.591 30.331
2048 105.003 204.680

There are some spikes I attribute to working load on system I was running benchmark on. You can test it yourself with included benchmark.py

speedcopy's People

Contributors

antirotor avatar bigroy avatar

Stargazers

Aleks Berland avatar Aditia A. Pratama avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.