M
M
mamont802021-01-05 19:06:52
Performance evaluation
mamont80, 2021-01-05 19:06:52

Should I take an 8 core processor to speed up WebPack / Typescript compilation?

Now it's core i7 i7700 + 32GB RAM, SSD. Other software does not need acceleration, only WebPack compilation. An incremental build takes about 11 seconds, I want less. The battle with the settings of WebPack itself has not yet yielded tangible results. The current processor has 4 cores, during compilation the processor is loaded by 30 percent. New processors from AMD on benchmarks show twice the result, but there are 8 or more cores. The performance per core is about the same. Therefore, there are huge doubts that WebPack will be able to parallelize well and use all the power, and replacing hardware is not cheap.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Igor Makhov, 2021-01-05
@mamont80

No, it's not worth it. I have an i9 9900k and the speed is not much higher

A
acwartz, 2021-01-06
@acwartz

Little depends on iron, if the developers did not set as their goal the analysis of the configuration with the subsequent distribution of work with the maximum use of available resources, then the result will be the same.

A
Alexander Taratin, 2021-01-06
@Taraflex

You can parallelize the assembly of different entries
https://github.com/trivago/parallel-webpack
+ parallelize the compression
https://webpack.js.org/plugins/terser-webpack-plug...

A
Adamos, 2021-01-06
@Adamos

You can select a ramdisk from these 32 gigs, dump everything on it - and simply check if the build speed is limited by the disk.

M
mamont80, 2021-01-06
@mamont80

Ramdisk has no effect. The operating system does a great job of caching files. But just in case, I checked. As expected, there was no effect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question