Hi, +-From: derek cram <cram.de...@gmail.com> -- |_Date: Tue, 9 Aug 2011 08:52:46 +0200 _____ | |I've made more tests and I can notice a small improvement. It downloads at |3.5MB/s instead of 3.0Mb/s.
I have been running some simple tests for checking download performances on Java6 + GNU/Linux system. Here are results, * downloading 20MB file through the slow network(across WAN), * jsch-0.1.44: 0.7346629MB/s * jsch-0.1.45-rc6: 5.480023MB/s * sftp(OpenSSH_4.3p2): 1.7MB/s * downloading 20MB file from the host on LAN, * jsch-0.1.44: 12.193116MB/s * jsch-0.1.45-rc6: 18.736536MB/s * sftp(OpenSSH_4.3p2): 22.6MB/s Is it amazing that downloading performance with 0.1.45-rc6 is faster than with sftp command on the slow network? As for code, I have just replaced some lines in Sftp.java[1] with the followings, long totaltime=0; int count = 10; for(int j=0; j<count; j++){ long t=System.currentTimeMillis(); c.get(p1, p1); long tt=System.currentTimeMillis(); System.out.println(" "+(tt-t)); totaltime+=(tt-t); } long filesize = (new java.io.File(p1)).length() / 1024; System.out.println("downloading "+filesize+"KB*"+count+ " in "+totaltime+"msec -> "+ (filesize*count)/((float)(totaltime))+"MB/s"); |Is it such improvement expected? Or is it more? I thought it could be the |same as upload so 16MB/s. It will depend on your network, environment and your testing code, and I have nothing to say about, at present. [1] http://www.jcraft.com/jsch/examples/Sftp.java Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users