performance test about spatial function.