Created
March 13, 2022 18:45
-
-
Save JosepER/767b6b9ac178092e25370416f7874fe0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Benchmarking a call to 'Inequality.gini' without weights, | |
# and with a vector of 1s as weights. | |
using BenchmarkTools | |
using Inequality | |
v = rand(1:10000, 300) | |
w = repeat([1], 300) | |
@benchmark gini($v) evals=15 | |
@benchmark gini($v, $w) evals=15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment