Skip to content

Instantly share code, notes, and snippets.

View kirillkh's full-sized avatar

Kirill Khazan kirillkh

  • Israel
View GitHub Profile
Linux i5-6200U @ 2.3GH
-------------------
running 3 tests
test bench_instant ... bench: 4,916 ns/iter (+/- 1,165)
test bench_syscall ... bench: 1,131 ns/iter (+/- 583)
test bench_systemtime ... bench: 4,785 ns/iter (+/- 662)
WSL i7-6700K CPU @ 4.00GHz
-------------------
use std::io;
//#[macro_use] extern crate text_io;
#[derive(Clone)]
struct Node {
children: Vec<usize>
}
impl Node {
fn new() -> Node {
#!/usr/bin/env bash
#
##############################################################################
# Copyright 2002-2013 LAMP/EPFL
#
# This is free software; see the distribution for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
##############################################################################
@kirillkh
kirillkh / Cargo.toml
Last active August 29, 2015 14:26
win_canonicalize_bug
[package]
name = "win_canonicalize_bug"
version = "1.0.0"
[dependencies]
libc = "*"
kernel32-sys = "0.1.3"