adding new test performance_test.phpt

I will consume the result set on client memory, I think it will make
execution faster.



On Tue, Jul 1, 2014 at 5:47 PM, Tom Gates <notifications@github.com> wrote:

> In tests/performance_test.phpt:
>
> > +
> > +  $db->beginTransaction();
> > +
> > +  while ($i < $LARGE_ITERATION) {
> > +    $sql = "INSERT INTO perf_test (a,b ) VALUES ($i,'A')";
> > +    $i++;
> > +    $db->query($sql);
> > +  }
> > +
> > +  $db->commit();
> > +
> > +  $start_time = microtime(true);
> > +  $sql4 = "select * from perf_test";
> > +  $stmt = $db->prepare($sql4);
> > +  $stmt->execute();
> > +
>
> Again, consume all of the rows in the result set.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nuodb/nuodb-php-pdo/pull/36/files#r14400384>.
>