Open xibiange opened 10 years ago
echo time(); <?php $kafka = new Kafka("10.10.18.19:9092"); for($i = 0;$i<10;$i++){
echo $i."\n"; $kafka->produce("test", $i);
} echo "\n".time();
To amortize the initial setup cost and provide meaningful performance figures you need to do two things:
new Kafka..
echo time(); <?php $kafka = new Kafka("10.10.18.19:9092"); for($i = 0;$i<10;$i++){
} echo "\n".time();