[jcifs] 0.6 speed!

Rob Wygand rob at filefish.com
Fri Dec 7 06:05:23 EST 2001


Mike, et. al.,

I wanted to share with you some performance numbers we saw when 
upgrading from jCIFS 0.5r1 to 0.6b3.

I ran a couple tests of browsing directories and getting file properties 
on each file in the directory, basically:

Get a URL
Create an SmbFile from it
Call SmbFile.list()
For each result:
   Create an SmbFile
   Call isDirectory()
   Call canRead()
   Call canWrite()
   Call getName()
   Call lastModified()
Exit

We can two sets of test, one with 1 thread doing these actions and one 
with 10 threads simultaneously performing these actions. Here are the 
results:

(All times in mSec. All 10 user numbers are averages of the 10 result times)

                 jCIFS 0.5             jCIFS 0.6b3          GAIN
# files:     1 user / 10 users     1 user / 10 users  (1 user / 10users)
------------------------------------------------------------------------
1            22     / 119          9      / 15.7       2.4x   / 7.6x
3            466    / 1251         238    / 89.6       1.96x  / 13.97x
20           241    / 2564         115    / 218.2      2.10x  / 11.75x
57           541    / 6065         241    / 1707.4     2.24x  / 2.55x
155          1923   / 23614.2      1154   / 4761       1.67x  / 4.96
212          3434   / 39117.2      722    / 5651.7     4.75x  / 6.92

I'm suspicious of the 14x and 12x numbers, but everything else looks 
great! To get a 6x increase under load makes me so happy I could spit, 
to coin a phrase.

Just wanted to share the perf numbers with you all...
rjw





More information about the jcifs mailing list