compare async and sync performance