Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick and dirty PDO vs ADOdb benchmark
#Quick and dirty PDO vs ADOdb benchmark
#PDO benchmark script:
$db = new PDO("mysql:dbname=logs;host=", "root", "");
$rs = $db->query("select * from ses limit 10")->fetchAll(PDO::FETCH_ASSOC);
foreach($rs as $r) {}
#ADOdb benchmark script
$db = NewADOConnection("mysql://root:@");
$rs = $db->Execute("select * from ses limit 10");
foreach($rs as $r) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.