-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I have tried the example below on Win10 and Unbuntu 18 under WSL2 with Julia 1.7.1. Results are similar.
julia> Threads.nthreads()
8
julia> using InMemoryDatasets, BenchmarkTools
julia> ds = Dataset(rand(10^5, 100), :auto);
julia> m = Matrix(ds);
julia> @Btime byrow(ds, sum, 1:100);
22.097 ms (171 allocations: 889.34 KiB)
julia> @Btime sum(m, dims = 2);
15.696 ms (6 allocations: 879.06 KiB)
julia> @Btime byrow(ds, sum, 1:100, threads = true);
22.181 ms (168 allocations: 889.17 KiB)
sl-solution
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working