Skip to content

Instantly share code, notes, and snippets.

@mpapec
mpapec / test.pl
Last active September 8, 2016 14:57 — forked from jberger/test.pl
use Mojolicious::Lite;
helper iodelay => sub {
my $cb = pop;
my ($c, @steps) = @_;
push @steps, sub {
# log err if $_[1]
shift;
$c->$cb(@_);
use strict;
use warnings;
use Benchmark qw(cmpthese);
my $String = "ATGC" x 1000;
my @Genes = qw(A T G C);
my %Count;
my %dispatch = map { $_ => eval "sub { \$_[0] =~ tr/$_// }" } @Genes;