perf(gatsby-cli): throttle progress bar, build much faster this way (#19866)
perf(gatsby-cli): throttle progress bar, build much faster this way (#19866)

* perf(gatsby-cli): throttle progress bar, build significantly faster this way

This change explicitly throttles the progress bar updates (`tick` and `total`) to be clamped to 10 fps max.

This drops the govbook benchmark from 210 seconds down to 140 seconds.

Fixes #15505
Fixes #17452
Fixes #17966
Fixes #18801

Relates to #17873
Relates to https://github.com/vadimdemedes/ink/issues/212

* Force flush on done() and use local var for total

ilcm96/ilcm96.github.io