Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10229
T212521 - execution time
Active
Public
Actions
Authored by
Krinkle
on Jan 20 2020, 9:13 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31518525: raw.txt
Jan 20 2020, 9:13 PM
2020-01-20 21:13:45 (UTC+0)
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
Event Timeline
Krinkle
created this paste.
Jan 20 2020, 9:13 PM
2020-01-20 21:13:45 (UTC+0)
Krinkle
mentioned this in
T212521: RFC: Reconsider how we run QUnit unit tests
.
Jan 21 2020, 12:05 AM
2020-01-21 00:05:46 (UTC+0)
Log In to Comment