benchmark: direct use xs function