apollo-tracing-ruby
apollo-tracing-ruby copied to clipboard
Measure duration using Process.clock_gettime() rather than Time.now.utc
This PR optimizes duration calculations to use Process.clock_gettime(Process::CLOCK_MONOTONIC, :nanosecond) rather than Time.now.utc. Similar optimizations landed in Benchmark in this change with a follow up simplification in this commit. On my MacBook Pro running High Sierra with a 2.2 GHz Intel Core i7 processor this speeds up a GraphQL query that returns roughly 1,089 field values from 529ms to 201ms.
The Travis build is failing because https://registry.npmjs.org/apollo-engine-binary-darwin/-/apollo-engine-binary-linux-0.2018.4-20-g7a8822c14.tgz can't be downloaded. I assume this is unrelated to my changes.
Issues go stale after a week of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 2 weeks of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.
/lifecycle stale
Stale issues rot after 2 weeks of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
Rotten issues close after an additional 2 weeks of inactivity.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.
/lifecycle rotten
Rotten issues close after 2 weeks of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.
/close
@telescopebot: Closed this PR.
In response to this:
Rotten issues close after 2 weeks of inactivity. Reopen the issue with
/reopenwith a justification. Mark the issue as fresh with/remove-lifecycle rottenwith a justification. If this issue should be exempted, mark the issue as frozen with/lifecycle frozenwith a justification. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.