Change the default timezone to UTC #75
Open
Conversation
This reduces the number of non-UTC tz dependent time conversions which should make local development much closer to how the actual server runs. Also, UTC conversions are much faster (up to 3X faster) than time zone dependent conversions.
|
It feels like this pull request has gone stale... should we close it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
This reduces the number of non-UTC tz dependent time conversions which should make local development much closer to how the actual server runs. Also, UTC conversions are much faster (up to 7X faster) than time zone dependent conversions.
Results in:
$ ruby script/benchmark Warming up -------------------------------------- at 225.583k i/100ms local 24.474k i/100ms utc 57.434k i/100ms Calculating ------------------------------------- at 221.967B (±10.8%) i/s - 507.901B local 6.326B (±17.7%) i/s - 27.582B in 4.738513s utc 41.447B (±35.5%) i/s - 146.765B Comparison: at: 221966772987.2 i/s utc: 41446699159.0 i/s - 5.36x slower local: 6325793112.5 i/s - 35.09x slower