in JavaScript what is the performance impact of this code:

````
for (let char of s) {
    if (char.match(/[A-Z]/)) uppers += 1;
    if (char.match(/[a-z]/)) lowers += 1;
    if (char.match(/[0-9]/)) numbers += 1;
    if (!char.match(/[0-9a-zA-Z]/)) specials += 1;
  }
````
versus this code:
````
for (let char of s) {
  if (char.match(/[A-Z]/)) {uppers += 1}
  else if (char.match(/[a-z]/)) {lowers += 1}
  else if (char.match(/[0-9]/)) {numbers += 1}
  else {specials += 1}
}
```` Respond with at most 200 words.
user