-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: fixed `umd/es5` declaration file * docs: updated download urls * chore(deps-dev): bump @typescript-eslint/parser from 5.10.0 to 5.10.1 (#125) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.10.0 to 5.10.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.10.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump webpack-cli from 4.9.1 to 4.9.2 (#127) Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.1 to 4.9.2. - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/[email protected]@4.9.2) --- updated-dependencies: - dependency-name: webpack-cli dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @typescript-eslint/eslint-plugin (#126) * docs: gitter badge * chore(deps-dev): bump es-check from 6.1.1 to 6.2.1 (#130) * chore(deps-dev): bump eslint from 8.7.0 to 8.8.0 (#131) * chore(deps-dev): bump @typescript-eslint/eslint-plugin (#134) * chore(deps-dev): bump webpack from 5.67.0 to 5.68.0 (#133) * chore(deps-dev): bump @typescript-eslint/parser from 5.10.1 to 5.10.2 (#132) * build: es2017 as default output * docs: updated benchmark * chore: added .npmignore * docs: updated benchmark * docs: more examples * style: formatted code * docs: fixed benchmark * ci: fixed actions/checkout#237 * chore: codecov bug was not fixed :( * chore(deps-dev): bump jest from 27.4.7 to 27.5.0 (#136) * chore(deps-dev): bump @typescript-eslint/eslint-plugin (#138) * deps: updated dependencies * tag: v0.8.6 * no: way that I did that * tag: v0.8.7 * fix: now npmignore is happy * tag: v0.8.8 * docs: updated download urls Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f09670d
commit f50e6ee
Showing
26 changed files
with
2,630 additions
and
3,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# white list approach | ||
|
||
* | ||
|
||
!LICENSE | ||
!README.md | ||
|
||
!src/** | ||
|
||
!umd/** | ||
!cjs/** | ||
!esm/** | ||
|
||
!types/** | ||
|
||
!examples/runkit.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ node_modules | |
.yarn | ||
|
||
changelog.md | ||
CHANGELOG.md | ||
CHANGELOG.md | ||
|
||
_comparison-benchmark.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* eslint-disable */ | ||
|
||
const Benny = require('benny'); | ||
const { execSync } = require('child_process'); | ||
const { writeFileSync } = require('fs'); | ||
|
||
const Axios = require('axios').default; | ||
const AxiosInstance = Axios.create(); | ||
|
||
const AxiosCacheInterceptor = require('../cjs'); | ||
const InterceptorInstance = AxiosCacheInterceptor.setupCache(Axios.create()); | ||
|
||
const AxiosCacheAdapter = require('axios-cache-adapter'); | ||
const AdapterInstance = AxiosCacheAdapter.setup({}); | ||
|
||
const config = { | ||
port: 8734, | ||
host: '0.0.0.0' | ||
}; | ||
|
||
const data = {}; | ||
const runs = {}; | ||
const app = require('express')(); | ||
|
||
app.get('/:name', ({ params }, res) => { | ||
data[params.name] ? data[params.name]++ : (data[params.name] = 1); | ||
|
||
return res.json({ | ||
computation: Math.random(), | ||
name: params.name | ||
}); | ||
}); | ||
|
||
const server = app.listen(config.port, config.host); | ||
|
||
Benny.suite( | ||
'Benchmark Result', | ||
|
||
Benny.add('axios', async () => { | ||
const name = 'axios'; | ||
runs[name] ? runs[name]++ : (runs[name] = 1); | ||
|
||
await AxiosInstance.get(`http://${config.host}:${config.port}/${name}`); | ||
}), | ||
|
||
Benny.add('cache-interceptor', async () => { | ||
const name = 'cache-interceptor'; | ||
runs[name] ? runs[name]++ : (runs[name] = 1); | ||
|
||
await InterceptorInstance.get(`http://${config.host}:${config.port}/${name}`); | ||
}), | ||
|
||
Benny.add('cache-adapter', async () => { | ||
const name = 'cache-adapter'; | ||
runs[name] ? runs[name]++ : (runs[name] = 1); | ||
|
||
await AdapterInstance.get(`http://${config.host}:${config.port}/${name}`); | ||
}), | ||
|
||
Benny.cycle(), | ||
Benny.complete((summary) => { | ||
server.close(); | ||
|
||
writeFileSync( | ||
'pages/_comparison-benchmark.md', | ||
`# Result | ||
Run at ${new Date().toUTCString()} | ||
Commit: ${execSync('git rev-parse HEAD').toString()} | ||
${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 - Math.round(options.percentSlower)}%` | ||
) | ||
.join('\n')} | ||
` | ||
); | ||
}) | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Result | ||
|
||
Run at Fri, 04 Feb 2022 10:58:25 GMT | ||
Commit: 1f884e9de54aae06d64fa8359bbc0b562799ffb6 | ||
|
||
|
||
CACHE INTERCEPTOR | ||
Operations: 42334/s | ||
Network requests: 1 of 206287 | ||
Performance: 100% | ||
|
||
CACHE ADAPTER | ||
Operations: 35034/s | ||
Network requests: 2 of 170895 | ||
Performance: 83% | ||
|
||
AXIOS | ||
Operations: 1646/s | ||
Network requests: 8409 of 8409 | ||
Performance: 4% |
Oops, something went wrong.