bellard / quickjs

Public repository of the QuickJS Javascript Engine.
https://bellard.org/quickjs
Other
8.47k stars 885 forks source link

Question: how many CPU cores does V8 use in benchmark? #347

Closed linrongbin16 closed 1 month ago

linrongbin16 commented 1 month ago

Hi,

In the benchmark https://bellard.org/quickjs/bench.html, I am not sure how many CPU cores does V8 and QuickJs use?

Because in my knowledge, V8 can use multiple threads to improve the performance, especially the garbage collection.

chqrlie commented 1 month ago

QuickJS uses a single core at all times.

linrongbin16 commented 1 month ago

QuickJS uses a single core at all times.

Yes, while V8 seems can use one or more threads (correct me if I'm wrong). I feel like the benchmark is not fair if they use different threads.