Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d46437

Browse filesBrowse files
kktyaddaleax
authored andcommitted
doc: update benchmark doc
Benchmark for arrays no longer exists, but it was still referenced in documentation. Refs: #21831 PR-URL: #25367 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 4ca0968 commit 7d46437
Copy full SHA for 7d46437

File tree

Expand file treeCollapse file tree

2 files changed

+11
-18
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-18
lines changed
Open diff view settings
Collapse file

‎benchmark/README.md‎

Copy file name to clipboardExpand all lines: benchmark/README.md
-7Lines changed: 0 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ directory, see [the guide on benchmarks](../doc/guides/writing-and-running-bench
2222
</tr>
2323
</thead>
2424
<tbody>
25-
<tr>
26-
<td>arrays</td>
27-
<td>
28-
Benchmarks for various operations on array-like objects,
29-
including <code>Array</code>, <code>Buffer</code>, and typed arrays.
30-
</td>
31-
</tr>
3225
<tr>
3326
<td>assert</td>
3427
<td>
Collapse file

‎doc/guides/writing-and-running-benchmarks.md‎

Copy file name to clipboardExpand all lines: doc/guides/writing-and-running-benchmarks.md
+11-11Lines changed: 11 additions & 11 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -125,28 +125,28 @@ run `node benchmark/run.js`. Again this does not provide the statistical
125125
information to make any conclusions.
126126

127127
```console
128-
$ node benchmark/run.js arrays
128+
$ node benchmark/run.js assert
129129

130-
arrays/var-int.js
131-
arrays/var-int.js n=25 type=Array: 71.90148040747789
132-
arrays/var-int.js n=25 type=Buffer: 92.89648382795582
130+
assert/deepequal-buffer.js
131+
assert/deepequal-buffer.js method="deepEqual" strict=0 len=100 n=20000: 773,200.4995493788
132+
assert/deepequal-buffer.js method="notDeepEqual" strict=0 len=100 n=20000: 964,411.712953848
133133
...
134134

135-
arrays/zero-float.js
136-
arrays/zero-float.js n=25 type=Array: 75.46208316171496
137-
arrays/zero-float.js n=25 type=Buffer: 101.62785630273159
135+
assert/deepequal-map.js
136+
assert/deepequal-map.js method="deepEqual_primitiveOnly" strict=0 len=500 n=500: 20,445.06368453332
137+
assert/deepequal-map.js method="deepEqual_objectOnly" strict=0 len=500 n=500: 1,393.3481642240833
138138
...
139139

140-
arrays/zero-int.js
141-
arrays/zero-int.js n=25 type=Array: 72.31023859816062
142-
arrays/zero-int.js n=25 type=Buffer: 90.49906662339653
140+
assert/deepequal-object.js
141+
assert/deepequal-object.js method="deepEqual" strict=0 size=100 n=5000: 1,053.1950937538475
142+
assert/deepequal-object.js method="notDeepEqual" strict=0 size=100 n=5000: 9,734.193251965213
143143
...
144144
```
145145

146146
It is possible to execute more groups by adding extra process arguments.
147147

148148
```console
149-
$ node benchmark/run.js arrays buffers
149+
$ node benchmark/run.js assert async_hooks
150150
```
151151

152152
### Comparing Node.js versions

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.