Skip to content

Instantly share code, notes, and snippets.

@kostya
kostya / .gitignore
Last active December 15, 2015 02:48
tt1
Gemfile.lock
@kostya
kostya / result
Last active November 7, 2016 22:12 — forked from c910335/result
some sort benchmarks
======== 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
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"])