Add missing code to naive-pattern in benchmark