Skip to content

Pure Python SMB client benchmarking

Robin Wilson edited this page Apr 20, 2020 · 10 revisions

Using smbprotocol:

------------------------------------------------------------------------------------------------- benchmark: 4 tests ------------------------------------------------------------------------------------------------
Name (time in ms)                     Min                    Max                   Mean                StdDev                 Median                   IQR            Outliers      OPS            Rounds  Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_mkdir                        28.2206 (1.0)         138.3701 (2.84)         37.6844 (1.0)         22.7358 (9.63)         30.3162 (1.0)          3.0474 (1.0)           3;5  26.5362 (1.0)          31           1
test_short_string_write           41.3841 (1.47)         48.7995 (1.0)          44.2853 (1.18)         2.3604 (1.0)          43.7065 (1.44)         3.3846 (1.11)          3;0  22.5808 (0.85)         10           1
test_copy_larger_file          1,188.2589 (42.11)     2,607.7514 (53.44)     1,432.5850 (38.02)      430.9156 (182.56)    1,288.7436 (42.51)      229.5015 (75.31)         1;1   0.6980 (0.03)         10           1
test_copy_very_large_file     10,524.5408 (372.94)   14,032.7586 (287.56)   12,669.9673 (336.21)   1,037.6882 (439.63)   12,782.6318 (421.64)   1,375.2721 (451.29)        2;0   0.0789 (0.00)         10           1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Using pysmb:

--------------------------------------------------------------------------------------------- benchmark: 3 tests --------------------------------------------------------------------------------------------
Name (time in ms)                    Min                   Max                  Mean              StdDev                Median                 IQR            Outliers      OPS    Rounds  Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_short_string_write          30.7420 (1.0)         80.7924 (1.0)         43.7129 (1.0)       13.1190 (1.0)         41.5045 (1.0)       11.4453 (1.0)           3;2  22.8765 (1.0)        17           1
test_copy_larger_file           845.4560 (27.50)      980.0222 (12.13)      894.2136 (20.46)     42.2219 (3.22)       876.1998 (21.11)     53.6339 (4.69)          2;0   1.1183 (0.05)        10           1
test_copy_very_large_file     7,957.6078 (258.85)   9,354.0760 (115.78)   8,608.0208 (196.92)   489.7915 (37.33)    8,670.2460 (208.90)   902.6466 (78.87)         4;0   0.1162 (0.01)        10           1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------