Provide a secondary audit of the performance claims regarding sort(unique(x)) vs unique(sort(x)).
We compare these two expressions across various input sizes, data types, and presence/absence of missing values (NA / NaN).
Benchmarks were performed using the bench package in R.
We tested the following parameters:
-
Vector Sizes (
$N$ ):$10^3$ ,$10^4$ ,$10^5$ ,$10^6$ .