Some updates for the new pattern matching rules

plus a hacky way around use of 'performance' in nodejs (talking to clemos about the right switch to use)