From ab0aa4301d450ce56dccd94cfb3de884bd0441de Mon Sep 17 00:00:00 2001 From: Philip Swannell <18028484+PGS62@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:12:50 +0000 Subject: [PATCH] Update README.md --- README.md | 83 ++++++++++++++++++++++--------------------------------- 1 file changed, 33 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index e5f4d86..38c154c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,11 @@ # KendallTau.jl -This unregistered package exports four function, which will be proposed as candidates to replace functions of the same name in StatsBase: +This unregistered package exports four functions, each with better performance than the +functions of the same name in StatsBase. I plan to raise a PR to replace the +StatsBase versions with the versions from this package, as a follow-on from issue +[634](https://github.com/JuliaStats/StatsBase.jl/issues/634), commit [647](https://github.com/JuliaStats/StatsBase.jl/commit/11ac5b596405367b3217d3d962e22523fef9bb0d) +(which improved `corkendall`'s performance by a factor of about seven). * `corkendall`, for the calculation of Kendall's τ coefficient. * `corspearman`, for the calculation of Spearman correlation. @@ -97,19 +101,23 @@ This unregistered package exports four function, which will be proposed as candi

- +The examples below were run on a PC with [this processor](https://ark.intel.com/content/www/us/en/ark/products/134591/intel-core-i7-12700-processor-25m-cache-up-to-4-90-ghz.html). +``` +julia> versioninfo() +Julia Version 1.10.2 +Commit bd47eca2c8 (2024-03-01 10:14 UTC) +Build Info: + Official https://julialang.org/ release +Platform Info: + OS: Windows (x86_64-w64-mingw32) + CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700 + WORD_SIZE: 64 + LIBM: libopenlibm + LLVM: libLLVM-15.0.7 (ORCJIT, alderlake) +Threads: 20 default, 0 interactive, 10 GC (on 20 virtual cores) +``` ## `corkendall` performance ```julia @@ -135,18 +143,6 @@ true julia> Threads.nthreads()#12 cores, 20 logical processors 20 -julia> versioninfo() -Julia Version 1.10.0 -Commit 3120989f39 (2023-12-25 18:01 UTC) -Build Info: - Official https://julialang.org/ release -Platform Info: - OS: Windows (x86_64-w64-mingw32) - CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700 - WORD_SIZE: 64 - LIBM: libopenlibm - LLVM: libLLVM-15.0.7 (ORCJIT, alderlake) - Threads: 29 on 20 virtual cores ```