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: 1 tests -------------------------------------------------
Name (time in ms)               Min      Max     Mean  StdDev   Median      IQR  Outliers      OPS  Rounds  Iterations
----------------------------------------------------------------------------------------------------------------------
test_short_string_write     34.2718  51.9222  41.2869  6.5097  39.2207  11.5384       5;0  24.2208      13           1
----------------------------------------------------------------------------------------------------------------------