Add benchmark that uses shared arrays