Simple ruby script to monitor http response times over a period of time.
% ruby http-monitor.rb https://google.com 20 3
2023-05-26 12:13:59 : (GET https://google.com) : 1.207913s
2023-05-26 12:14:02 : (GET https://google.com) : 0.102176s
2023-05-26 12:14:05 : (GET https://google.com) : 0.146981s
2023-05-26 12:14:08 : (GET https://google.com) : 0.100712s
2023-05-26 12:14:11 : (GET https://google.com) : 0.101287s
2023-05-26 12:14:15 : (GET https://google.com) : 0.110682s
2023-05-26 12:14:19 : (GET https://google.com) : 1.131652s
---
Total running time: 23.904733s
Total probes made: 7
Average response time: 0.41448614285714286s
Min response time: 0.100712s
Max response time: 1.207913s