Guest User

Untitled

a guest
Sep 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Pipeline pipeline = jedis.pipelined();
  2. long start = System.currentTimeMillis();
  3. for (int i = 0; i < 100000; i++) {
  4. pipeline.set("" + i, "" + i);
  5. }
  6. List<Object> results = pipeline.execute();
  7. long end = System.currentTimeMillis();
  8. System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds");
Add Comment
Please, Sign In to add comment