From 7d46437c45ffd08038df3bab588411a6c6b11503 Mon Sep 17 00:00:00 2001 From: Kazushi Kitaya Date: Sun, 6 Jan 2019 18:02:23 +0900 Subject: [PATCH] doc: update benchmark doc Benchmark for arrays no longer exists, but it was still referenced in documentation. Refs: https://github.com/nodejs/node/pull/21831 PR-URL: https://github.com/nodejs/node/pull/25367 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- benchmark/README.md | 7 ------- doc/guides/writing-and-running-benchmarks.md | 22 ++++++++++---------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/benchmark/README.md b/benchmark/README.md index dfdf319b9cb311..8016d3a5584cee 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -22,13 +22,6 @@ directory, see [the guide on benchmarks](../doc/guides/writing-and-running-bench - - arrays - - Benchmarks for various operations on array-like objects, - including Array, Buffer, and typed arrays. - - assert diff --git a/doc/guides/writing-and-running-benchmarks.md b/doc/guides/writing-and-running-benchmarks.md index f0d6d289fa49ae..5838449612b541 100644 --- a/doc/guides/writing-and-running-benchmarks.md +++ b/doc/guides/writing-and-running-benchmarks.md @@ -125,28 +125,28 @@ run `node benchmark/run.js`. Again this does not provide the statistical information to make any conclusions. ```console -$ node benchmark/run.js arrays +$ node benchmark/run.js assert -arrays/var-int.js -arrays/var-int.js n=25 type=Array: 71.90148040747789 -arrays/var-int.js n=25 type=Buffer: 92.89648382795582 +assert/deepequal-buffer.js +assert/deepequal-buffer.js method="deepEqual" strict=0 len=100 n=20000: 773,200.4995493788 +assert/deepequal-buffer.js method="notDeepEqual" strict=0 len=100 n=20000: 964,411.712953848 ... -arrays/zero-float.js -arrays/zero-float.js n=25 type=Array: 75.46208316171496 -arrays/zero-float.js n=25 type=Buffer: 101.62785630273159 +assert/deepequal-map.js +assert/deepequal-map.js method="deepEqual_primitiveOnly" strict=0 len=500 n=500: 20,445.06368453332 +assert/deepequal-map.js method="deepEqual_objectOnly" strict=0 len=500 n=500: 1,393.3481642240833 ... -arrays/zero-int.js -arrays/zero-int.js n=25 type=Array: 72.31023859816062 -arrays/zero-int.js n=25 type=Buffer: 90.49906662339653 +assert/deepequal-object.js +assert/deepequal-object.js method="deepEqual" strict=0 size=100 n=5000: 1,053.1950937538475 +assert/deepequal-object.js method="notDeepEqual" strict=0 size=100 n=5000: 9,734.193251965213 ... ``` It is possible to execute more groups by adding extra process arguments. ```console -$ node benchmark/run.js arrays buffers +$ node benchmark/run.js assert async_hooks ``` ### Comparing Node.js versions