1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

benchmarks: sftp_async + few changes

This commit is contained in:
Aris Adamantiadis
2011-08-30 12:31:02 +03:00
parent b11567ed9b
commit 3a5cc18b32
5 changed files with 187 additions and 54 deletions

View File

@ -36,6 +36,7 @@ enum libssh_benchmarks {
BENCHMARK_SCP_DOWNLOAD,
BENCHMARK_SYNC_SFTP_UPLOAD,
BENCHMARK_SYNC_SFTP_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_DOWNLOAD,
BENCHMARK_NUMBER
};
@ -44,9 +45,13 @@ struct argument_s {
int verbose;
int nhosts;
int ntests;
int data;
unsigned int datasize;
unsigned int chunksize;
int concurrent_requests;
};
extern char *buffer;
typedef int (*bench_fct)(ssh_session session, struct argument_s *args,
float *bps);
@ -88,4 +93,6 @@ int benchmarks_sync_sftp_up (ssh_session session, struct argument_s *args,
float *bps);
int benchmarks_sync_sftp_down (ssh_session session, struct argument_s *args,
float *bps);
int benchmarks_async_sftp_down (ssh_session session, struct argument_s *args,
float *bps);
#endif /* BENCHMARKS_H_ */