Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelgss/nodejs-benchmark-coverage


https://github.com/rafaelgss/nodejs-benchmark-coverage

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# nodejs-benchmark-coverage

```
> [email protected] bench:report
> nyc mocha bench/foo.js

main
✔ test
┌─────────┬────────────────────────────┬──────────────┬───────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼────────────────────────────┼──────────────┼───────────────────┼──────────┼─────────┤
│ 0 │ 'foo([1, 2, 3, 4], false)' │ '22,639,352' │ 44.17087497173558 │ '±0.17%' │ 2263936 │
│ 1 │ 'foo([1, 2, 3, 4], true)' │ '11,631,084' │ 85.97650435163905 │ '±0.80%' │ 1163109 │
│ 2 │ 'bar([1, 2, 3, 4], false)' │ '13,012,439' │ 76.84954255348997 │ '±0.82%' │ 1301245 │
│ 3 │ 'bar([1, 2, 3, 4], true)' │ '11,809,713' │ 84.67606259901497 │ '±0.81%' │ 1180972 │
└─────────┴────────────────────────────┴──────────────┴───────────────────┴──────────┴─────────┘

1 passing (3s)

---------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------------------|---------|----------|---------|---------|-------------------
All files | 85.71 | 64.28 | 100 | 85.71 |
nodejs-benchmark-coverage | 76.19 | 64.28 | 100 | 76.19 |
index.js | 76.19 | 64.28 | 100 | 76.19 | 4,9,16,26,33
nodejs-benchmark-coverage/bench | 100 | 100 | 100 | 100 |
foo.js | 100 | 100 | 100 | 100 |
```