Skip to content

Startup time #5

@PallHaraldsson

Description

@PallHaraldsson

I see you threw out PCG, because of your concern for the startup time.

While ProfileView.jl is really good, it's maybe not too helpful to do:

@profview using VectorizedRNG

or at least I'm not going to try to read into it (it's the first time I used in on using). For the first run using time (excluding when Precompiling) however, there's a gap, seemingly like it's doing nothing (much) for about 10% of the time.

That can't be right, I can upload a screenshot if you don't notice this right away. Any idea what's happening?

The second using while much faster isn't really too fast, and while you wouldn't maybe or at least shouldn't(?) be doing that, it also has an interesting profile.

Your package is not unique to this second using "issue", bu it's not shared by all packages so (so not a julia issue), I'm a little curious about it too.

[ProfileSVG.jl is also interesting, I tried it, and it generates 4 MB SVG file, and my Firefox took its time displaying fully with "your web page is slowing down your browser" and showing 8 screen-fulls if I recall...]

$ julia
julia> @time using VectorizedRNG
  2.090021 seconds (3.48 M allocations: 178.768 MiB, 7.77% gc time)

julia> @time using VectorizedRNG
  0.644264 seconds (1.16 M allocations: 54.428 MiB, 1.76% gc time)

julia> @time using VectorizedRNG
  0.000276 seconds (566 allocations: 29.734 KiB)


First time (not really a concern, but for some, maybe all the delay they'll ever see?):
julia> @time using VectorizedRNG
[ Info: Precompiling VectorizedRNG [33b4df10-0173-11e9-2a0c-851a7edac40e]
 12.832126 seconds (4.41 M allocations: 222.948 MiB, 0.89% gc time)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions