• Post Reply Bookmark Topic Watch Topic
  • New Topic

Micro-Benchmarking Locks  RSS feed

 
Roger Krampfer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently writing a promela description of a CLH-based RW-lock that supports aborting arbitrary members in the queue. So proving correctness shouldn't be (too much of) an issue.
But I'll have to implement this in Java, obviously, (7, as it happens, because that's what the project supports), and I have no idea how to micro-benchmark such an implementation for comparison with other synchronisation options.
Any suggestions?
 
Tim Cooke
Marshal
Posts: 4041
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jmh is pretty popular for benchmarking. I have used it a number of times at work for a very very very performance sensitive application. HdrHistogram is also a valuable measurement tool for performance sensitive applications, however I have had less experience in using this one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!