Skip to content

Commit

Permalink
Write Performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
donjajo committed Sep 1, 2021
1 parent 230d1cc commit a047e4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/PerformanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public function testInsert(): void {
$sum += ( $stop - $start )/1000000;
}
$i += $j;
fprintf( STDOUT, "\nTook average of %fs to insert 1000 batch %d", $sum / 1000, $i / 1000 );
fprintf( STDOUT, "\nTook average of %fms to insert 1000 records - BATCH %d", $sum, $i / 1000 );
fflush(STDOUT);
}

$foods = $this->jsondb->select('name')->from( 'food' )->get();
$this->assertCount( 5000, $foods );
}
}

0 comments on commit a047e4b

Please sign in to comment.