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

Add benchmark code for download using the async sftp aio api

benchmarks_async_sftp_aio_down() has been added in
tests/benchmarks/bench_sftp.c to obtain the performance
metrics of a download using the low level async sftp aio
api.

Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Eshan Kelkar
2023-05-29 11:45:49 +05:30
committed by Sahana Prasad
parent be0c558bcc
commit 710ce11cf0
3 changed files with 167 additions and 2 deletions

View File

@ -37,6 +37,7 @@ enum libssh_benchmarks {
BENCHMARK_SYNC_SFTP_UPLOAD,
BENCHMARK_SYNC_SFTP_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_AIO_DOWNLOAD,
BENCHMARK_NUMBER
};
@ -96,4 +97,6 @@ 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);
int benchmarks_async_sftp_aio_down(ssh_session session, struct argument_s *args,
float *bps);
#endif /* BENCHMARKS_H_ */