SHARE
TWEET

Jim

a guest Sep 29th, 2010 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $start = microtime(true);
  3. $queue  = 'jms.queue.jimTest2';
  4. $msg    = "ABCDJIMTEST<GRV>http://techcrunch.com/2010/09/23/thelikestream-digg-for-facebook-likes/<GRV>0";
  5.  
  6. $stomp = new Stomp('tcp://grv-cache09:61613');
  7.  
  8. for($i=0; $i<50000; $i++) {
  9.   $stomp->send($queue, $msg, array('persistent' => 'false'));
  10. }
  11.  
  12. unset($stomp);
  13. print microtime(true) - $start." seconds\n\n";
  14.  
  15. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top