I compared two functions with performance.now(), so I supposed that the second function would be better than first one but it happens the other way around. I don\'t know why thi