On Thu, Jul 25, 2019 at 5:47 PM purple lad <purple...@gmail.com> wrote: > > I mean the case where an applications uses 1TB memory with tons of live > objects. How long might it be taken for the V8 GC to work with the 1TB memory > filled with tons of live objects? > > The V8 blog shows some data where it might take 100~ms for a normal website > (https://v8.dev/blog/concurrent-marking). But I am wondering how the > performance will be for some extreme cases (i.e., 1TB heap filled with tons > of live objects.) > > I know it is really impossible to give an accurate answer. But I just want to > get very some basic ideas and estimations for the GC performance for very > huge cases. Would the GC time on main thread be milli-second, second or even > minutes level? > > > Thank you!
A typical Node.js application often has 10,000s to 100,000s of live objects. A major garbage collection cycle normally completes in under 10 milliseconds. (In practice, most will be minor scavenges that complete in < .1 ms.) -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAHQurc8WPGNjcU13SPS5-jko0zmT5XNLRqkb6HGJwV3xn_qmLA%40mail.gmail.com.