Skip to content
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

FYI: other package and speed #16

Open
PallHaraldsson opened this issue Jun 5, 2020 · 0 comments
Open

FYI: other package and speed #16

PallHaraldsson opened this issue Jun 5, 2020 · 0 comments

Comments

@PallHaraldsson
Copy link

PallHaraldsson commented Jun 5, 2020

Good to know about that fastest option you mention (and ArgMacros you do not, but might want to).

Speed is not everything, but yours is slowest, at least at starting, not sure when you add useful work:

julia> @time using DocOpt
  0.012110 seconds (14.44 k allocations: 836.352 KiB)

julia> @time using ArgParse
  0.043875 seconds (43.98 k allocations: 3.469 MiB)

julia> @time using ArgMacros
  0.046656 seconds (37.61 k allocations: 3.137 MiB)


julia> @time using ArgParse2
  0.172533 seconds (87.85 k allocations: 5.838 MiB)

julia> @time using ArgParse2
  0.000889 seconds (255 allocations: 13.984 KiB)

julia> @time using ArgParse2
  0.000292 seconds (120 allocations: 8.156 KiB)

As you can see the second using has more allocations (and not as fast) as the third, a hint to invalidation (unlike e.g. for ArgMacros), that I understand slow down startup (first using), and SnoopCompile.jl can help.

I'm not too concerned in your case, it's just that with (other) packages slow, I'm looking into such issues, and don't want people do avoid Julia for scripting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant