Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Luminarys's full-sized avatar
💭
I may be slow to respond.

Ezra Luminarys

💭
I may be slow to respond.
View GitHub Profile
@Luminarys
Luminarys / bench.rs
Created August 27, 2017 19:27
disk IO bench
#![feature(test)]
extern crate memmap;
extern crate test;
extern crate rand;
extern crate vecio;
use std::env;
use std::io::{self, Read, Write, Cursor, Seek, SeekFrom};
use std::fs::{File, OpenOptions};
use rand::Rng;
#[derive(Default)]
pub struct Registry {
counter: usize,
free: Vec<usize>,
reclaimed: Vec<usize>,
reclaimable: bool,
}
impl Registry {
pub fn new() -> Registry {
use std::hash::{Hash, Hasher, BuildHasher};
use std::collections::hash_map::RandomState;
use std::default::Default;
use std::marker::PhantomData;
struct BloomFilter<K: Hash + Eq, H = RandomState> {
bits: Vec<bool>,
hashes: u8,
hasher: H,
marker: PhantomData<K>
#!/usr/bin/python
import datetime
import time
import sys
import asyncio
import i3ipc
def getDate():
today = datetime.date.today()

Keybase proof

I hereby claim:

  • I am luminarys on github.
  • I am luminarys (https://keybase.io/luminarys) on keybase.
  • I have a public key whose fingerprint is 0C2C 8E3A 61C7 B819 ED20 878F B324 667D 4A10 57C8

To claim this, I am signing this object: