Remove unnecesary deadlock.
Add some bench code.