A performance comparison for JavaScript code using transducers