measure tree find match time