[go-nuts] Measuring low latency operations

2018-01-14 Thread asaaveri
All: I am testing an application that has a latency of the order of few to several microseconds. I wrote a benchmark and measured the performance. I also computed the elapsed time using time.Now() and time.Since(). (I will change this to time,Nanoseconds and try shortly. I found the compute

Re: [go-nuts] Measuring low latency operations

2018-01-15 Thread Jesper Louis Andersen
General rules: * If possible, use the benchmark system inside the "testing" package. It will eliminate some common mistakes in benchmarking, but keep your head straight while doing it, so you don't accidentally measure setup time, or something else which is outside the thing you are trying to test

Re: [go-nuts] Measuring low latency operations

2018-01-15 Thread matthewjuran
Another benchmarking rule is the operating system may be dynamically adjusting performance for power saving or other reasons. Be sure to disable any such features before running the benchmark. Matt On Monday, January 15, 2018 at 9:04:11 AM UTC-6, Jesper Louis Andersen wrote: > > General rules:

Re: [go-nuts] Measuring low latency operations

2018-01-16 Thread asaaveri
- I will look into median and for some visual display of the data - Good advice on looking into median and using the benchmarking tool. - I run on virtualized servers but don't know at this point if it is affecting my data. On Monday, January 15, 2018 at 10:04:11 AM UTC-5, Jespe