optimize parser and writer
update perf test2