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

benchmarks: added raw_download test

This commit is contained in:
Aris Adamantiadis
2011-08-28 13:29:25 +03:00
parent a2c94abb92
commit 5d9cd8bf39
4 changed files with 130 additions and 15 deletions

View File

@ -30,13 +30,14 @@
#define MAX_HOSTS_CONNECT 20
enum libssh_benchmarks {
BENCHMARK_RAW_UPLOAD=1,
BENCHMARK_RAW_UPLOAD=0,
BENCHMARK_RAW_DOWNLOAD,
BENCHMARK_NUMBER
};
struct argument_s {
const char *hosts[MAX_HOSTS_CONNECT];
char benchmarks[BENCHMARK_NUMBER -1];
char benchmarks[BENCHMARK_NUMBER];
int verbose;
int nhosts;
int ntests;
@ -58,5 +59,7 @@ float elapsed_time(struct timestamp_struct *ts);
int benchmarks_raw_up (ssh_session session, struct argument_s *args,
float *bps);
int benchmarks_raw_down (ssh_session session, struct argument_s *args,
float *bps);
#endif /* BENCHMARKS_H_ */