azure-storage-blob-go/go.sum

47 строки
4.3 KiB
Plaintext
Исходник Обычный вид История

2020-07-27 09:58:53 +03:00
github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U=
github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl2bqk7S3ta6S6u4k=
github.com/Azure/go-autorest/autorest v0.9.0 h1:MRvx8gncNaXJqOoLmhNjUAKh33JJF8LyxPhomEtOsjs=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.3 h1:O1AGG9Xig71FxdX9HO5pGNyZ7TbSyHaVg+5eJO/jSGw=
github.com/Azure/go-autorest/autorest/adal v0.8.3/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
github.com/Azure/go-autorest/autorest/date v0.2.0 h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM=
github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
github.com/Azure/go-autorest/autorest/mocks v0.3.0 h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc=
github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY=
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
2019-08-13 21:09:28 +03:00
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
2020-07-27 09:58:53 +03:00
github.com/mattn/go-ieproxy v0.0.1 h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqfI=
github.com/mattn/go-ieproxy v0.0.1/go.mod h1:pYabZ6IHcRpFh7vIaLfK7rdcWgFEb3SFJ6/gNWuh88E=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
2020-07-27 09:58:53 +03:00
golang.org/x/net v0.0.0-20191112182307-2180aed22343 h1:00ohfJ4K98s3m6BGUoBd8nyfp4Yl0GoIKvw5abItTjI=
golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2020-07-27 09:58:53 +03:00
golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea h1:Mz1TMnfJDRJLk8S8OPCoJYgrsp/Se/2TBre2+vwX128=
golang.org/x/sys v0.0.0-20191112214154-59a1497f0cea/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Provide default values for UploadStreamToBlockBlobOptions and refactor UploadStreamToBlockBlob (#167) * Refactor of UploadStreamToBlockBlobOptions Refactor to remove bugs and extra complexity. * Migrate stream code to own file. Add concurrency. After benchmarking, code was 25% slower without concurrency in azcopy, regardless of buffer sizing. This change introduces back concurrency, but with a much simpler model and still eliminating the the atomic operations. * Update to use io.ReadFull() Adding test. Benchmarks are now on par with the original code. Here is 10 runs using the current azcopy binary and a binary built from changed code: Binary = bins/azcopy_original(run 1) Benchmark 1KiB file: 338.314573ms Benchmark 1MiB file: 484.967288ms Benchmark 10MiB file: 760.810541ms Benchmark 100MiB file: 1.351661794s Benchmark 1GiB file: 10.826069714s Binary = bins/azcopy_original(run 2) Benchmark 1KiB file: 207.941537ms Benchmark 1MiB file: 460.838416ms Benchmark 10MiB file: 760.783836ms Benchmark 100MiB file: 1.501405998s Benchmark 1GiB file: 7.18717018s Binary = bins/azcopy_original(run 3) Benchmark 1KiB file: 212.47363ms Benchmark 1MiB file: 467.623706ms Benchmark 10MiB file: 698.447313ms Benchmark 100MiB file: 1.292167757s Benchmark 1GiB file: 7.637774779s Binary = bins/azcopy_original(run 4) Benchmark 1KiB file: 276.746547ms Benchmark 1MiB file: 465.676606ms Benchmark 10MiB file: 646.126277ms Benchmark 100MiB file: 1.087617614s Benchmark 1GiB file: 6.546629743s Binary = bins/azcopy_original(run 5) Benchmark 1KiB file: 224.753013ms Benchmark 1MiB file: 468.194201ms Benchmark 10MiB file: 658.754858ms Benchmark 100MiB file: 1.287728254s Benchmark 1GiB file: 7.349753091s Binary = bins/azcopy_original(run 6) Benchmark 1KiB file: 215.433224ms Benchmark 1MiB file: 468.2654ms Benchmark 10MiB file: 736.859155ms Benchmark 100MiB file: 1.288282248s Benchmark 1GiB file: 9.901807484s Binary = bins/azcopy_original(run 7) Benchmark 1KiB file: 309.374802ms Benchmark 1MiB file: 466.3705ms Benchmark 10MiB file: 764.919816ms Benchmark 100MiB file: 1.288119942s Benchmark 1GiB file: 12.568692895s Binary = bins/azcopy_original(run 8) Benchmark 1KiB file: 223.696311ms Benchmark 1MiB file: 459.585207ms Benchmark 10MiB file: 861.388787ms Benchmark 100MiB file: 2.001739213s Benchmark 1GiB file: 14.062394287s Binary = bins/azcopy_original(run 9) Benchmark 1KiB file: 213.478124ms Benchmark 1MiB file: 472.516087ms Benchmark 10MiB file: 888.345447ms Benchmark 100MiB file: 1.712670977s Benchmark 1GiB file: 7.351456844s Binary = bins/azcopy_original(run 10) Benchmark 1KiB file: 211.893325ms Benchmark 1MiB file: 461.4607ms Benchmark 10MiB file: 810.622545ms Benchmark 100MiB file: 1.649993952s Benchmark 1GiB file: 12.236548842s Binary = bins/azcopy_changed(run 1) Benchmark 1KiB file: 253.721968ms Benchmark 1MiB file: 498.897549ms Benchmark 10MiB file: 787.010372ms Benchmark 100MiB file: 1.381749395s Benchmark 1GiB file: 10.446411529s Binary = bins/azcopy_changed(run 2) Benchmark 1KiB file: 252.710169ms Benchmark 1MiB file: 531.817803ms Benchmark 10MiB file: 829.688513ms Benchmark 100MiB file: 1.385873084s Benchmark 1GiB file: 8.47119338s Binary = bins/azcopy_changed(run 3) Benchmark 1KiB file: 257.306962ms Benchmark 1MiB file: 505.047536ms Benchmark 10MiB file: 784.31337ms Benchmark 100MiB file: 1.555737854s Benchmark 1GiB file: 8.552681344s Binary = bins/azcopy_changed(run 4) Benchmark 1KiB file: 247.846574ms Benchmark 1MiB file: 497.231545ms Benchmark 10MiB file: 815.651525ms Benchmark 100MiB file: 2.697350445s Benchmark 1GiB file: 7.516749079s Binary = bins/azcopy_changed(run 5) Benchmark 1KiB file: 252.352667ms Benchmark 1MiB file: 501.701337ms Benchmark 10MiB file: 707.436865ms Benchmark 100MiB file: 1.36936469s Benchmark 1GiB file: 9.73502422s Binary = bins/azcopy_changed(run 6) Benchmark 1KiB file: 310.863688ms Benchmark 1MiB file: 502.052735ms Benchmark 10MiB file: 1.002850071s Benchmark 100MiB file: 1.506176604s Benchmark 1GiB file: 11.832881097s Binary = bins/azcopy_changed(run 7) Benchmark 1KiB file: 257.951257ms Benchmark 1MiB file: 504.845129ms Benchmark 10MiB file: 897.192408ms Benchmark 100MiB file: 3.660229033s Benchmark 1GiB file: 8.277701479s Binary = bins/azcopy_changed(run 8) Benchmark 1KiB file: 248.399669ms Benchmark 1MiB file: 510.47592ms Benchmark 10MiB file: 660.498819ms Benchmark 100MiB file: 983.16489ms Benchmark 1GiB file: 9.696608161s Binary = bins/azcopy_changed(run 9) Benchmark 1KiB file: 256.139558ms Benchmark 1MiB file: 509.733119ms Benchmark 10MiB file: 787.046948ms Benchmark 100MiB file: 1.304473257s Benchmark 1GiB file: 10.392113698s Binary = bins/azcopy_changed(run 10) Benchmark 1KiB file: 253.185361ms Benchmark 1MiB file: 500.357929ms Benchmark 10MiB file: 852.302359ms Benchmark 100MiB file: 1.555795815s Benchmark 1GiB file: 9.234134017s * Improve comments, use getErr() instead of old statement, add test for write errors Added some comment fixes. Adding some TODOs. Had an error detection using select that could just use getErr() instead. Wrote support and test for having a write error. * Updates to comments provided by ze * Reduces construction of chunk ids for the commit list, moves azblob_test to azblob azblob_test should be azblob test, allowing access to private types and removing the need for azblob. as a prefix. Could find no reason to make as a seperate package in a non-go standard way. This packages' derivation from the blobstore standard of a new UUID per chunk has merits as discussed with Adele(faster, less memory, possible upload resumes, etc...). So it was decided to keep it. However, wanted to make this easier for us to autoincrement ids and provide the list of IDs to commit instead of recreating them at the end at the cost of CPU we didn't have to spend (we were going to spend the memory anyways). So provided a better way to get the IDs. This change required changes to the tests. Most tests use a single blockID. For those tests we now use a var created on init() that is a UUID+ math.MaxUint32. That allows us to test the maximum value. For others, we now use our id type. This changed one test that was trying to test order, which wasn't necessary. All tests are passing. * Update gomod to import uuid an update of adal * Update go.mod via go tidy command The adal change was because one of the zt tests uses it. It always should have been there and won't cause any change in functionality. errors gets added as an indirecty from check.v1, which it should have always had. This is because check doesn't have a go.mod file. Adds a minimum version of Go compiler 1.13 * Update go.mod * Just the mod updates * Get it back into shape Some git thing on my side, had to get us hand patched back right. Co-authored-by: John Doak <jdoak@janama-2.redmond.corp.microsoft.com> Co-authored-by: John Doak <jdoak@Fan061719.northamerica.corp.microsoft.com>
2020-05-02 01:42:05 +03:00
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
2020-07-27 09:58:53 +03:00
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
2019-08-13 21:09:28 +03:00
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
2019-06-28 10:34:59 +03:00
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=