From 79ac02726299e50bbdb08ebf023e593147cd81ed Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Sun, 25 Dec 2022 19:12:40 -0300 Subject: [PATCH] docs: improved features --- benchmark/index.js | 8 ++++---- docs/src/generated/benchmark.md | 19 +++++++++++++++---- docs/src/guide.md | 2 +- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/benchmark/index.js b/benchmark/index.js index 338db79b..83f5674c 100644 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -74,10 +74,10 @@ ${summary.results .sort((a, b) => a.percentSlower - b.percentSlower) .map( (options) => ` -${options.name.split('-').join(' ').toUpperCase()} - Operations: ${options.ops}/s - Network requests: ${data[options.name]} of ${runs[options.name]} - Performance: ${(100 - options.percentSlower).toFixed(2)}%` +## ${options.name.split('-').join(' ').toUpperCase()} +- Operations: ${options.ops}/s +- Network requests: ${data[options.name]} of ${runs[options.name]} +- Performance: ${(100 - options.percentSlower).toFixed(2)}%` ) .join('\n')} ` diff --git a/docs/src/generated/benchmark.md b/docs/src/generated/benchmark.md index 72f47968..34bf1dcc 100644 --- a/docs/src/generated/benchmark.md +++ b/docs/src/generated/benchmark.md @@ -1,9 +1,20 @@ # Result -Run at Wed, 09 Nov 2022 13:41:23 GMT Commit: 5b3902cd753532b5d5ba1d0c21fd32b8284f2a7c +Run at Sun, 25 Dec 2022 22:05:02 GMT +Commit: b6b9fc92eaa602597da6fa780445ad495943cee9 -- CACHE INTERCEPTOR Operations: 75833/s Network requests: 1 of 380011 Performance: 100.00% -- CACHE ADAPTER Operations: 70894/s Network requests: 2 of 352964 Performance: 93.49% +## CACHE INTERCEPTOR +- Operations: 39282/s +- Network requests: 1 of 190041 +- Performance: 100.00% -- AXIOS Operations: 2385/s Network requests: 13192 of 13192 Performance: 3.15% +## CACHE ADAPTER +- Operations: 36315/s +- Network requests: 2 of 180292 +- Performance: 92.45% + +## AXIOS +- Operations: 1787/s +- Network requests: 8956 of 8956 +- Performance: 4.55% diff --git a/docs/src/guide.md b/docs/src/guide.md index 1e535786..7a5a5237 100755 --- a/docs/src/guide.md +++ b/docs/src/guide.md @@ -33,7 +33,7 @@ finally returns the response to the original caller. - Memory, LocalStorage and SessionStorage built-in storages. - Less than 4.3Kb minified and gzipped. - Development mode to debug your requests. -- 23.2% faster than using axios and 1.2% faster than axios-cache-adapter. +- 22 times faster than using axios and 8% faster than axios-cache-adapter. - And much more... ## Why not...?