annotate vendor/sabre/vobject/bin/bench.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 #!/usr/bin/env php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4 include __DIR__ . '/../vendor/autoload.php';
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6 $data = stream_get_contents(STDIN);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8 $start = microtime(true);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10 $lol = Sabre\VObject\Reader::read($data);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12 echo "time: " . (microtime(true)-$start) . "\n";