Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $array = [];
- for($i=0; $i<10000; $i++)
- $array[] = Hash::unique();
- $start = microtime(true);
- $db->insert("temptest",["text"=>$array]);
- $end = microtime(true) - $start;
- dump($end);
- #0.021837949752808
- $start = microtime(true);
- foreach($array as $item)
- $db->insert("temptest2",["text"=>$item]);
- $end = microtime(true) - $start;
- dump($end);
- #0.28586792945862
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement