Getting a strange result from a latency test in a pipeline of n go
routines. (very small n, < 10).
For the test, an initial time.Now().UnixNano() is sent to the out chan of
the pipeline head. The sink in the pipeline does a delta
(time.Now().UnixNano() - chan out value) . Did not expect to get negative
deltas but seeing that. (Changing number of Go procs. does not affect the
general result.) OS X 10.9.2 Go1.3.
Reviewing the godoc for time package doesn't mention anything about time
results being relative to h/w core.
What is the precise contract of this api?
routines. (very small n, < 10).
For the test, an initial time.Now().UnixNano() is sent to the out chan of
the pipeline head. The sink in the pipeline does a delta
(time.Now().UnixNano() - chan out value) . Did not expect to get negative
deltas but seeing that. (Changing number of Go procs. does not affect the
general result.) OS X 10.9.2 Go1.3.
Reviewing the godoc for time package doesn't mention anything about time
results being relative to h/w core.
What is the precise contract of this api?