Page MenuHomePhabricator
Paste P10229

T212521 - execution time
ActivePublic

Authored by Krinkle on Jan 20 2020, 9:13 PM.
Tags
None
Referenced Files
F31518525: raw.txt
Jan 20 2020, 9:13 PM
Subscribers
None
## chromium vs nodejs (measures only main process startup)
Node.js 10 took ~ 0.4 seconds to start and return from a dummy statement:
```
nobody@debian-stretch$ time node -e 'console.log("Hello")'
Hello
real 0m0.464s
```
Chromium 71 took ~ 0.22 seconds to return the DOM from a dummy page:
```
nobody@debian-stretch$ time chromium --headless --no-sandbox --disable-gpu --dump-dom 'about:blank' 2>/dev/null
<html><head></head><body></body></html>
real 0m0.204s
```
-------
## grunt-karma vs node-qunit
Measures total run time (startup main process, subprocesses, and running tests).
me at Mac in ~/dev/oojs$ time ./node_modules/.bin/grunt karma:jquery
Karma server started
Launch HeadlessChrome …
Executed 57 tests
real 0m 5.379s
me at Mac in ~/dev/oojs$ time ./node_modules/.bin/qunit tests/node-index.js
TAP version 13 …
# pass 55 tests
real 0m 7.258s