1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4 <TITLE> Tests and Benchmarks </TITLE>
6 <H3 ALIGN=CENTER>1.12: Tests and Benchmarks </H3>
7 <TABLE ALIGN="CENTER" BORDER=0 WIDTH="95%">
9 <TD WIDTH="25%" ALIGN="LEFT">
10 <A HREF="slide-0111.html">Prev</A>
12 <A HREF="index.html">Index</A>
15 <TD WIDTH="25%" ALIGN="RIGHT">Page 12/12
20 <li> Test system is table driven
22 <li> Scripts can do both tests and benchmarks
24 <li> Provide a set of data
31 <li> Generate in place with map
35 <li> Generate with a anonymous sub
38 <li> Provide a hand written 'golden' sort sub
40 <li> Provide the arguments to make_sorter()
42 <li> Many tests are in but more are wanted
45 <li> Send in tests if you want
48 <li> More complex tests are needed
53 name => 'arrays of multiple strings',
56 [ rand_token( 8, 20 ), rand_token( 8, 20 ), ]
59 gold => sub { $a->[0] cmp $b->[0] ||
60 $a->[1] cmp $b->[1] },
61 args => [ qw( string $_->[0] string $_->[1] ) ],
66 <TABLE ALIGN="CENTER" BORDER=0 WIDTH="95%">
68 <TD WIDTH="30%" ALIGN="LEFT">
69 <A HREF="slide-0111.html">Prev</A>
71 <A HREF="index.html">Index</A>
73 YAPC::NA 2004, Buffalo, NY
74 <TD WIDTH="25%" ALIGN="RIGHT">Page 12/12
78 <TD ALIGN="CENTER" COLSPAN="3">
79 <FONT SIZE="-3">© 2004 Uri Guttman</FONT>