Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why not fast but slow #4

Open
xibiange opened this issue Aug 29, 2014 · 1 comment
Open

why not fast but slow #4

xibiange opened this issue Aug 29, 2014 · 1 comment

Comments

@xibiange
Copy link

echo time();

produce("test", $i); ``` } echo "\n".time();
@edenhill
Copy link

To amortize the initial setup cost and provide meaningful performance figures you need to do two things:

  • you will need to make some room for the initial connection setup, put a sleep(1) between new Kafka.. and the for loop.
  • send more messages, such as 100 000.

EVODelavega referenced this issue in EVODelavega/phpkafka Jun 24, 2015
* commit '8bd35ce63f0183d6482e3e604df28b888e548fed':
  Fix syntax in test script + make void methods chainable (setPartition)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants