Help for this page

Select Code to Download


  1. or download this
    ./execute_cmp.pl 100 1000 100
    Benchmark: timing 100 iterations of SQLite_new, SQLite_old...
    ...
    Benchmark: timing 100 iterations of MySQL_new, MySQL_old...
     MySQL_new: 58 wallclock secs (26.45 usr +  1.43 sys = 27.88 CPU) @  3
    +.59/s (n=100)
     MySQL_old: 30 wallclock secs ( 8.09 usr +  0.85 sys =  8.94 CPU) @ 11
    +.19/s (n=100)
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
        $dbh->disconnect;
    }