Measuring web socket performance

is it correct that k6 doesn’t have a precise time-measurement API? I’d like not to use Date since in my experience it’s usually not the best choice.

Yes, someone asked this recently here Process.hrtime cannot be access inside js file. Given the apparent interest, maybe we should add it … but the API is under question(as nodejs has one and browsers have different one). I also … highly doubt that there will be a measurable difference in the majority of the cases between using it and Date.now()

The thing about JMeter sounds like you’ve scripted it(aka what you are asking if you need to do here) … and I still don’t understand how Jmeter figures out what it needs to measure … does it measure how long the loop takes to execute?