Skip to content

Drastic performance decrease with newer Node builds #636

@stuff

Description

@stuff

Hi there,
I've just update my old node from 0.10.33 to the shiny new 0.12.0 stable version. And my process build was 2 times slower :( (14s before update versus 29s exactly)

Every single steps seems a little bit slower (I'm using grunt, and a bunch of plugins) but the uglify task is VERY VERY slower. I've benchmarked a single test file using directly uglifyjs to double check it was the bottle neck. My script test looks like :

var UglifyJS = require("uglify-js");
var result = UglifyJS.minify(array_of_files);

array_of_files is an array of 66 files, from the biggest (jquery-ui) to the smallest (custom code with 10-15 lines), and the benchmark :

> nvm current
v0.10.33

> time node test.js
node test.js  3,08s user 0,10s system 99% cpu 3,188 total

> nvm use v0.12.0
Now using node v0.12.0

> time node test.js
node test.js  8,19s user 0,10s system 106% cpu 7,760 total

nearly 3x more times

I've tried with some intermediate node version, it's progressively slower with updates...

I'm going to deeper look inside, but is it a "known" issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions