1 #!/usr/local/bin/perl -sw
9 my @sort_styles = qw( plain orcish ST GRT ) ;
15 name => 'simple string',
16 data => [ qw( z e a k ) ],
17 gold => sub { $a cmp $b },
18 sizes => [ 100, 1000 ],
20 gen => sub { rand_token() },
22 default => [ qw( string ) ],
23 ref_in => [ qw( ref_in string ) ],
24 ref_out => [ qw( ref_out string ) ],
25 ref_in_ref_out => [ qw( ref_in ref_out string ) ],
30 name => 'simple number',
31 data => [ 32, 2, 9, 7 ],
32 gold => sub { $a <=> $b },
33 sizes => [ 100, 1000 ],
34 gen => sub { rand_number( 10 ) },
36 default => [ qw( number ) ],
37 ref_in => [ qw( ref_in number ) ],
38 ref_out => [ qw( ref_out number ) ],
39 ref_in_ref_out => [ qw( ref_in ref_out number ) ],
47 benchmark_driver( $sort_tests, \@sort_styles ) ;
50 test_driver( $sort_tests, \@sort_styles ) ;