Skip to content

Commit 59719d8

Browse files
committed
optimization for travis
1 parent 1fffec6 commit 59719d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/PerformanceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public function test()
2424

2525
$this->exec('create', 1000, function(Mapper $mapper) {
2626
foreach(range(1, $this->counter) as $id) {
27-
$mapper->create('tester', [$id, "text for $id"]);
27+
$mapper->create('tester', ['id' => $id, 'text' => "text for $id"]);
2828
}
2929
});
3030

3131
$this->exec('read ony by one', 10000, function(Mapper $mapper) {
3232
foreach(range(1, $this->counter) as $id) {
33-
$mapper->findOne('tester', $id);
33+
$mapper->findOne('tester', ['id' => $id]);
3434
}
3535
});
3636

@@ -58,6 +58,6 @@ private function exec($label, $value, Callable $runner)
5858
$this->assertGreaterThan($value, $mappingPerSecond, "exec: $label");
5959

6060
// output overhead in milliseconds per entity
61-
// var_dump($label.": ".(1000 * $cleanTime / $this->counter). ' ' .$cleanTime);
61+
// var_dump($label.": ".(1000 * $cleanTime / $this->counter). ' ' .$cleanTime. ' '.$mappingPerSecond);
6262
}
6363
}

0 commit comments

Comments
 (0)