add memory and time usage comparison