-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvements #26
Conversation
mix.exs
Outdated
@@ -42,7 +42,8 @@ defmodule ExJsonLogger.Mixfile do | |||
{:credo, "~> 1.6.7", only: [:dev, :test]}, | |||
{:dialyxir, "~> 0.5.1", only: [:dev], runtime: false}, | |||
{:plug, "~> 1.14"}, | |||
{:jason, "~> 1.0"} | |||
{:jason, "~> 1.0"}, | |||
{:benchee, "~> 1.2", only: :bench} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should only load this in dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have it only set to load in bench
it won't be loaded in any environment except bench
. I can set this to dev
if we think we might always want it in dev
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the benchmarks with environment changed to dev
and got the same numbers so I guess there is no harm in changing it to dev
. Just note that in dev
benchee will always be downloaded when running mix deps.get
. PR updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some failing unit tests
I fixed the tests locally. CI workflow is running tests on all versions of Erlang. |
- otp: '22' | ||
elixir: '1.13' | ||
- otp: '23' | ||
elixir: '1.14' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to add Erlang 26 and Elixir 1.15 to this matrix. I didn't see any reason to continue supporting Elixir 1.13.
74737a3
to
c2559dd
Compare
c2559dd
to
ad6559b
Compare
[Card](https://rentpath.atlassian.net/browse/SRV-5981) This PR was branched off of #24 in order build on what was contributed there. * Switch to iolist to improvement performance * Update to latest version of Erlang 26 * Minor performance tweaks * Document benchee benchmark * Add Elixir 1.15 and Erlang 26, remove Elixir 1.13 from GitHub workflow Co-authored-by: ruslandoga <67764432+ruslandoga@users.noreply.github.com>
ad6559b
to
2320feb
Compare
Card
This PR was branched off of #24 in order build on what was contributed there.
Benchmarks
Before
After