Refactor and improve container performance test. Dispatch using dict in parser builder