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
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"]) |
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
======== 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 |
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
Gemfile.lock |