Skip to content

Instantly share code, notes, and snippets.

Kostya M kostya

  • Russia
View GitHub Profile
@kostya
kostya / result
Last active Nov 7, 2016 — forked from c910335/result
some sort benchmarks
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 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"])
You can’t perform that action at this time.