Skip to content

Commit

Permalink
docs: improved features
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Dec 25, 2022
1 parent b6b9fc9 commit 79ac027
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
8 changes: 4 additions & 4 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
`
Expand Down
19 changes: 15 additions & 4 deletions docs/src/generated/benchmark.md
Original file line number Diff line number Diff line change
@@ -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%
2 changes: 1 addition & 1 deletion docs/src/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...?
Expand Down

0 comments on commit 79ac027

Please sign in to comment.