Permalink
Browse files

Import a few simple analysis tools

  • Loading branch information...
keithw authored and danielrh committed Feb 10, 2016
1 parent f641aa4 commit bdbb529a86fc2a3132e1bd8b7be2cdef3834e7dc
Showing with 23 additions and 0 deletions.
  1. +20 −0 analysis/make-cdf
  2. +3 −0 analysis/time-parser
View
@@ -0,0 +1,20 @@
#!/usr/bin/perl -w
my @results;
while (<>) {
chomp;
if ( m{[^0-9.]} ) {
die qq{Unexpected time: $_};
}
push @results, $_;
}
my @results_sorted = sort { $a <=> $b } @results;
for ( 0 .. $#results_sorted ) {
my $sample = $results_sorted[ $_ ];
my $proportion_le_than_this_value = ($_ + 1) / (scalar @results_sorted);
print qq{$sample $proportion_le_than_this_value\n};
}
View
@@ -0,0 +1,3 @@
#!/bin/sh
grep '^real' "$@" | cut -d 'm' -f 2 | cut -d 's' -f 1

0 comments on commit bdbb529

Please sign in to comment.