cosine similarity test for macro detection
memory heap test for scalability