fix spelling tests
[p5sagit/Try-Tiny.git] / maint / bench.pl
CommitLineData
2b0d579d 1#!/usr/bin/env perl
2
3use warnings;
4use strict;
5
6use Benchmark::Dumb ':all';
7use Try::Tiny;
8
9my $max = 10_000;
10
11cmpthese('0.003', {
12 eval => sub { do { local $@; eval { die 'foo' } } for (1..$max) },
13 try => sub { do { try { die 'foo' } } for (1..$max) },
14});