Skip to content

Instantly share code, notes, and snippets.

View WalterWaldron's full-sized avatar

WalterWaldron

View GitHub Profile
@WalterWaldron
WalterWaldron / plot.R
Last active September 26, 2017 05:32 — forked from MartinNowak/plot.R
Benchmark realloc growth strategies
library(ggplot2)
library(plyr)
library(dplyr)
data <- read.csv('realloc_bench.csv')[ ,c('growth_factor', 'time_in_us')]
data$growth_factor <- factor(data$growth_factor)
p <- ggplot(data, aes(x=growth_factor, y=time_in_us, fill=growth_factor)) + geom_boxplot()
ggsave("grow_timings.png", p)
@WalterWaldron
WalterWaldron / scanner.d
Created January 17, 2017 04:24
Proof of concept: sporadic failure finder
import std.stdio;
import std.net.curl : get;
import std.array : split;
import std.range;
import std.conv : to;
import std.regex;
import std.ascii;
import std.parallelism : parallel;
import std.string : strip, lineSplitter;
import std.algorithm.searching : findSplit;