Performance regression in 3.16.14 series? #150
Description
We upgraded libv8 to the 3.16.14 series last week and started seeing significantly slower asset compilation times (through Uglifier) compared to v3.11.8.17. I came at this through Rails' Asset Pipeline, so I'm way in the weeds here and don't know if it's libv8 or V8 itself, but thought I'd ask here to see if anyone had similar experiences.
This doesn't seem to affect times on my dev machine (OS X 10.10, Intel Core i7), but it's between 2x and 5x slower on our production servers (Scientific Linux 6.5, AMD). Seems to be worse for larger files (obviously in strict wall-clock time, but also closer to 5x+ slower on the big files).
Benchmarks for Uglifier.compile()
, which is just the easiest way I know how to test:
_libv8-3.11.8.17-x86_64-linux_
Compiling bootstrap.js (62kb, not minified)
0.700000 0.030000 0.730000 ( 0.721680)
0.670000 0.030000 0.700000 ( 0.688308)
Compiling highcharts.js (496kb, not minified)
4.510000 0.040000 4.550000 ( 4.499848)
4.250000 0.030000 4.280000 ( 4.238179)
Compiling jquery-1.8.1.min.js (93kb, already minified)
2.630000 0.040000 2.670000 ( 2.639083)
2.540000 0.030000 2.570000 ( 2.548431)
Compiling jquery-ui-1.8.23.min.js (205kb, already minified)
3.320000 0.070000 3.390000 ( 3.345508)
3.360000 0.070000 3.430000 ( 3.382746)
Compiling application.js (900kb, mixed)
15.020000 0.300000 15.320000 ( 15.129480)
16.170000 0.180000 16.350000 ( 16.162925)
_libv8-3.16.14.3-x86_64-linux_
Compiling bootstrap.js (62kb, not minified)
0.980000 0.010000 0.990000 ( 0.976608)
0.860000 0.020000 0.880000 ( 0.865921)
Compiling highcharts.js (496kb, not minified)
8.720000 0.080000 8.800000 ( 8.736296)
7.230000 0.060000 7.290000 ( 7.230722)
Compiling jquery-1.8.1.min.js (93kb, already minified)
4.110000 0.080000 4.190000 ( 4.153838)
3.830000 0.030000 3.860000 ( 3.830293)
Compiling jquery-ui-1.8.23.min.js (205kb, already minified)
7.260000 0.060000 7.320000 ( 7.273115)
6.580000 0.030000 6.610000 ( 6.579161)
Compiling application.js (900kb, mixed)
82.280000 0.190000 82.470000 ( 82.314145)
87.490000 0.220000 87.710000 ( 87.526244)
Anyone experiencing anything similar, or have any ideas on what might cause this?