diff --git a/.npmignore b/.npmignore index 003eb6c62ff..879c6669f03 100644 --- a/.npmignore +++ b/.npmignore @@ -10,3 +10,4 @@ lib/llhttp/llhttp.wasm !types/**/* !index.d.ts !docs/docs/**/* +!scripts/strip-comments.js diff --git a/README.md b/README.md index de1bdcfbb97..72c32de1346 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ npm i undici ## Benchmarks -The benchmark is a simple getting data [example](benchmarks/benchmark.js) using a +The benchmark is a simple getting data [example](https://github.com/nodejs/undici/blob/main/benchmarks/benchmark.js) using a 50 TCP connections with a pipelining depth of 10 running on Node 20.10.0. | _Tests_ | _Samples_ | _Result_ | _Tolerance_ | _Difference with slowest_ | @@ -35,7 +35,7 @@ The benchmark is a simple getting data [example](benchmarks/benchmark.js) using | undici - stream | 15 | 20317.29 req/sec | ± 2.13 % | + 448.46 % | | undici - dispatch | 10 | 24883.28 req/sec | ± 1.54 % | + 571.72 % | -The benchmark is a simple sending data [example](benchmarks/post-benchmark.js) using a +The benchmark is a simple sending data [example](https://github.com/nodejs/undici/blob/main/benchmarks/post-benchmark.js) using a 50 TCP connections with a pipelining depth of 10 running on Node 20.10.0. | _Tests_ | _Samples_ | _Result_ | _Tolerance_ | _Difference with slowest_ | diff --git a/docs/index.html b/docs/index.html index 63d607d53d9..2e0ecca79f4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,6 +16,15 @@ name: 'Node.js Undici', repo: 'https://github.com/nodejs/undici', loadSidebar: 'docsify/sidebar.md', + search: { + noData: { + '/': 'No results!' + }, + paths: ['docs/'], + placeholder: { + '/': 'Search' + } + }, auto2top: true, subMaxLevel: 3, maxLevel: 3, @@ -28,6 +37,7 @@ +