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:
committed by
Sahana Prasad
parent
710ce11cf0
commit
f4fe781f65
@ -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_ */
|
||||
|
Reference in New Issue
Block a user