add bench code
update benchmark tools and removed a lot of bugs