Skip to content

Performance vs PyCall + Python's dcor #2

@david-vicente

Description

@david-vicente

EnergyStatistics.jl seems to have considerable worse performance when compared with PyCall + Python's dcor, so I'm opening this issue and if I have time in the future I might look into it.

using BenchmarkTools, EnergyStatistics, PyCall
pydcor = pyimport("dcor")
distance_correlation = pydcor.distance_correlation

a = rand(10000)
b = rand(10000)
@btime distance_correlation(a,b)
  42.030 ms (13 allocations: 720 bytes)
0.015306081174822574
@btime dcor(a,b)
  1.546 s (19 allocations: 763.47 MiB)
0.015306081175246091

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions