Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octogonapus/jld2benchmark
https://github.com/octogonapus/jld2benchmark
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/octogonapus/jld2benchmark
- Owner: Octogonapus
- Created: 2024-07-11T13:58:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-11T14:08:46.000Z (6 months ago)
- Last Synced: 2024-12-15T13:14:03.478Z (24 days ago)
- Language: Julia
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JLD2Benchmark
1. Run `create.jl`
2. Run `load.jl` with `-t 4` and observe that all runs of `JLD2.load` invoke the compiler during type reconstruction```julia
$ julia -t 4 --project .\load.jl
[ Info: Warmup:
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
0.104121 seconds (41.63 k allocations: 2.747 MiB, 374.56% compilation time)
[ Info: Running:
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
┌ Warning: saved type Foo is missing field newfield in workspace type; reconstructing
└ @ JLD2 C:\Users\salmon\.julia\packages\JLD2\MYcfT\src\data\reconstructing_datatypes.jl:207
0.004638 seconds (2.44 k allocations: 218.422 KiB)$ julia -t 4 --project .\load_upgrade.jl
[ Info: Warmup:
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
0.879622 seconds (415.31 k allocations: 29.382 MiB, 397.27% compilation time)
[ Info: Running:
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
JLD2.load("$(i).jld2"; typemap = Dict("Main.Foo" => JLD2.Upgrade(Foo))) = Dict{String, Any}("a" => Foo(1, 2))
0.006499 seconds (1.26 k allocations: 169.875 KiB)
```