add `window` before performance check