파일 업로드 속도 측정이고
청크 크기는 1MB
소스코드는 https://github.com/thsdmfwns/BenchMarkTusServers
벤치마크 결과는
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | // * Summary * BenchmarkDotNet v0.13.10, Debian GNU/Linux 11 (bullseye) (container) 11th Gen Intel Core i7-1165G7 2.80GHz, 1 CPU, 8 logical and 4 physical cores .NET SDK 7.0.402 [Host] : .NET 7.0.12 (7.0.1223.47720), X64 RyuJIT AVX2 .NET 7.0 : .NET 7.0.12 (7.0.1223.47720), X64 RyuJIT AVX2 Job=.NET 7.0 Runtime=.NET 7.0 InvocationCount=1 UnrollFactor=1 | Method | FileName | Mean | Error | StdDev | Median | |---------------- |-------------- |-----------:|-----------:|-----------:|-----------:| | SendByDotnet | testfile1.zip | 676.981 ms | 11.9397 ms | 13.2709 ms | 672.344 ms | | SendByDotnetAOT | testfile1.zip | 633.075 ms | 12.2446 ms | 17.5608 ms | 627.282 ms | | SendByGo | testfile1.zip | 544.204 ms | 4.3513 ms | 3.8573 ms | 544.280 ms | | SendByDotnet | testfile2.png | 4.981 ms | 0.1484 ms | 0.4329 ms | 4.938 ms | | SendByDotnetAOT | testfile2.png | 5.001 ms | 0.1042 ms | 0.3006 ms | 4.966 ms | | SendByGo | testfile2.png | 4.689 ms | 0.1423 ms | 0.4127 ms | 4.615 ms | | SendByDotnet | testfile3.mp4 | 657.764 ms | 7.7792 ms | 7.2767 ms | 658.877 ms | | SendByDotnetAOT | testfile3.mp4 | 623.075 ms | 5.3314 ms | 4.9869 ms | 622.754 ms | | SendByGo | testfile3.mp4 | 539.196 ms | 2.7680 ms | 2.4538 ms | 539.206 ms | | SendByDotnet | testfile4.txt | 1.549 ms | 0.0652 ms | 0.1880 ms | 1.485 ms | | SendByDotnetAOT | testfile4.txt | 1.545 ms | 0.0946 ms | 0.2715 ms | 1.447 ms | | SendByGo | testfile4.txt | 1.417 ms | 0.0541 ms | 0.1553 ms | 1.356 ms | | cs |
테스트 파일은
https://download.blender.org/demo/movies/BBB/
요기서 1080 nomal 버전 대충 350MB정도
사진은 1MB였나 실수로 삭제해서 기억 안남
go 소스는 없음?
tusd는 그냥 바이너리로 사용할수 있어서 이미지에서 바로 컨테이너 만듬
https://github.com/tus/tusd
감사감사