[check perf] builder as a class