add benchmark.cpp
we may need to refactor weight module now