Rails get response time for a curl (JSON) request
You can use Ruby's Benchmark module as follows:
time = Benchmark.realtime do req.performendputs "Time elapsed #{time*1000} milliseconds"
You can use Ruby's Benchmark module as follows:
time = Benchmark.realtime do req.performendputs "Time elapsed #{time*1000} milliseconds"