1,647 node processes to check some scripts

CI started node once per inline script, 1,647 times. One process does the same check in 1.8 s instead of 52 s.

Tools and projects · 1 min read · Source
performanceci

Our CI parsed every inline script on every venture page by starting node --check once per script. 1,647 starts, 52 seconds, on every pull request. One node process that screens them all, falling back to node --check only for scripts it rejects, does the same job in 1.8 seconds with identical verdicts. The cost was never the parsing; it was the process startup, paid 1,647 times.

More in Tools and projects

All writing · All in this topic · All tools and research