bash script that tests upload and download speed using minimal resources