View find_lib_icu.cr
require "c/dlfcn" | |
require "find_lib" # shard kostya/find_lib | |
def libicu_files | |
{% if flag?(:darwin) %} | |
FindLib.find("icucore") | |
{% elsif flag?(:windows) %} | |
FindLib.find(["icuuc", "icuin"]) | |
{% else %} | |
FindLib.find(["icui18n", "icutu"]) |
View result
======== random 2097152 ============= | |
(0.185) 2097152 elements with original quick sort | |
(0.135) 2097152 elements with intro sort | |
(0.142) 2097152 elements with std::sort in cpp | |
(0.267) 2097152 elements with qsort in c | |
======== seq 2097152 ============= | |
(0.047) 2097152 elements with original quick sort | |
(0.021) 2097152 elements with intro sort | |
(0.025) 2097152 elements with std::sort in cpp | |
(0.076) 2097152 elements with qsort in c |
View .gitignore
Gemfile.lock |