Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pipeline pipeline = jedis.pipelined();
- long start = System.currentTimeMillis();
- for (int i = 0; i < 100000; i++) {
- pipeline.set("" + i, "" + i);
- }
- List<Object> results = pipeline.execute();
- long end = System.currentTimeMillis();
- System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds");
Add Comment
Please, Sign In to add comment