After the bug of the interleaved mode, i note that my transfer was very slow.
So i make a simple test :
1. i create random files (with dd unix commanbd and /dev/urandom) of 1MiB, 10MiB and 100MiB
2. i transfer this three files by four different methods on three different connection.
The connections are :
1. xDSL : 1MBPS, ping : ~30ms
2. Fiber : 5MBPS, ping : ~30ms
3. LAN : 100MBPS, ping : 0.3ms
The methods are :
1. unix scp command
2. php with ssh2_sftp
3. php with phpseclib0.2.0
4. php with cvs version of phpseclib (interleaved mode)
I make three array for the result (in seconds) for the 3 files :
1 MIB file
xDSL (1MBPS)
- unix scp command : < 1
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:00:20
- php / SecLib cvs interleaved : 00:00:10
- unix scp command : < 1
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:00:02
- php / SecLib cvs interleaved : 00:00:11
- unix scp command : < 1
- php / ssh2_sftp : < 1
- php / SecLib 0.2.0 : 00:00:01
- php / SecLib cvs interleaved : 00:00:03
10 MIB file
xDSL (1MBPS)
- unix scp command : 00:01:31
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:02:04
- php / SecLib cvs interleaved : 00:01:39
- unix scp command : 00:00:13
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:00:19
- php / SecLib cvs interleaved : 00:01:42
- unix scp command : 00:00:01
- php / ssh2_sftp : 00:00:01
- php / SecLib 0.2.0 : 00:00:01
- php / SecLib cvs interleaved : 00:00:24
100 MIB file
xDSL (1MBPS)
- unix scp command : 00:17:45
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:19:33
- php / SecLib cvs interleaved : 00:16:54
- unix scp command : 00:02:57
- php / ssh2_sftp : Not Applicable (MAMP have no support for ssh lib)
- php / SecLib 0.2.0 : 00:03:12
- php / SecLib cvs interleaved : 00:16:33
- unix scp command : 00:00:08
- php / ssh2_sftp : 00:00:09
- php / SecLib 0.2.0 : 00:00:09
- php / SecLib cvs interleaved : 00:04:02
Sorry for the poor formatting but it seems that table tag is not active in this forum.
This result shows that phpseclib works correctly but not the cvs version
I try to deactivate the interleaved mode without any changes on times, so this is not the problem.
Have you any idea on this problem ?
(note that cvs version is better than others on big files with low connection !!)
Thanks
Christophe
