Skip to content

byrow problem (no multithreading?) #42

@minhuangr

Description

@minhuangr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions