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

Add benchmark code for upload using the async sftp aio api

benchmarks_async_sftp_aio_up() has been added in
tests/benchmarks/bench_sftp.c to obtain the performance
metrics of a upload 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 14:42:10 +05:30
committed by Sahana Prasad
parent 710ce11cf0
commit f4fe781f65
3 changed files with 145 additions and 0 deletions

View File

@ -38,6 +38,7 @@ enum libssh_benchmarks {
BENCHMARK_SYNC_SFTP_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_AIO_DOWNLOAD,
BENCHMARK_ASYNC_SFTP_AIO_UPLOAD,
BENCHMARK_NUMBER
};
@ -99,4 +100,6 @@ 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);
int benchmarks_async_sftp_aio_up(ssh_session session, struct argument_s *args,
float *bps);
#endif /* BENCHMARKS_H_ */