overtake 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,6 +38,8 @@ $ npm install -D overtake
|
|
|
38
38
|
|
|
39
39
|
## Examples
|
|
40
40
|
|
|
41
|
+
### Public interface
|
|
42
|
+
|
|
41
43
|
Create a benchmark in `__benchmarks__` folder
|
|
42
44
|
|
|
43
45
|
```javascript
|
|
@@ -91,6 +93,36 @@ or
|
|
|
91
93
|
npx overtake
|
|
92
94
|
```
|
|
93
95
|
|
|
96
|
+
### Inline support
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npx overtake -i "class A{}" -i "function A() {}" -i "A = () => {};" -c 20000
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
⭐ Script
|
|
104
|
+
⇶ Suite
|
|
105
|
+
➤ Perform
|
|
106
|
+
✓ Measure class A{}
|
|
107
|
+
┌─────────┬──────────┬──────────┬──────────┬───────────┬───────┐
|
|
108
|
+
│ (index) │ med │ p95 │ p99 │ total │ count │
|
|
109
|
+
├─────────┼──────────┼──────────┼──────────┼───────────┼───────┤
|
|
110
|
+
│ 0.0005 │ 0.000551 │ 0.001493 │ 0.002344 │ 16.506385 │ 20000 │
|
|
111
|
+
└─────────┴──────────┴──────────┴──────────┴───────────┴───────┘
|
|
112
|
+
✓ Measure function A() {}
|
|
113
|
+
┌─────────┬─────────┬────────┬──────────┬──────────┬───────┐
|
|
114
|
+
│ (index) │ med │ p95 │ p99 │ total │ count │
|
|
115
|
+
├─────────┼─────────┼────────┼──────────┼──────────┼───────┤
|
|
116
|
+
│ 0.00008 │ 0.00009 │ 0.0003 │ 0.000441 │ 2.875578 │ 20000 │
|
|
117
|
+
└─────────┴─────────┴────────┴──────────┴──────────┴───────┘
|
|
118
|
+
✓ Measure A = () => {};
|
|
119
|
+
┌─────────┬─────────┬──────────┬──────────┬─────────┬───────┐
|
|
120
|
+
│ (index) │ med │ p95 │ p99 │ total │ count │
|
|
121
|
+
├─────────┼─────────┼──────────┼──────────┼─────────┼───────┤
|
|
122
|
+
│ 0.00008 │ 0.00012 │ 0.000331 │ 0.000601 │ 3.42556 │ 20000 │
|
|
123
|
+
└─────────┴─────────┴──────────┴──────────┴─────────┴───────┘
|
|
124
|
+
```
|
|
125
|
+
|
|
94
126
|
Please take a look at [benchmarks](__benchmarks__) to see more examples
|
|
95
127
|
|
|
96
128
|
## License
|