Skip to content

Commit

Permalink
updating benchmarks (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t authored Aug 4, 2024
1 parent c61b986 commit 92acfd2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ Testing `iter-ops` against the latest `rxjs`:

**Tested with:**

- NodeJS v18.19.0
- rxjs v7.4.0
- iter-ops v1.5.2
- NodeJS v20.16.0
- rxjs v7.8.1
- iter-ops v3.4.0

### Running Tests

Running tests separately is recommended, or else results may become skewed.

- `npm run sync` - runs tests on synchronous iterables
- `npm run async` - runs tests on asynchronous iterables
- `npm test` - runs all tests (not recommended)
- `npm run test:sync` - runs tests on synchronous iterables
- `npm run test:async` - runs tests on asynchronous iterables

### Test Results

Expand Down Expand Up @@ -52,4 +52,4 @@ on how fast the source iterable is. Library `iter-ops` does come with some good
asynchronous iterables, which we achieve by using [toAsync]. However, it is possible to optimize an iterable for `rxjs`
separately. Therefore, it is nearly impossible to draw the line, in how to define an objective test for this.

[toasync]: https://vitaly-t.github.io/iter-ops/functions/toAsync
[toAsync]: https://vitaly-t.github.io/iter-ops/functions/toAsync
10 changes: 5 additions & 5 deletions benchmarks/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "iter-ops-benchmarks",
"version": "0.0.4",
"version": "0.0.5",
"description": "Benchmarks for iter-ops library",
"scripts": {
"async": "tsc -p src && node ./src/async.js",
"sync": "tsc -p src && node ./src/sync.js",
"test": "tsc -p src && node ./src/sync.js && node ./src/async.js"
"test": "tsc -p src && node ./src/sync.js && node ./src/async.js",
"test:async": "tsc -p src && node ./src/async.js",
"test:sync": "tsc -p src && node ./src/sync.js"
},
"devDependencies": {
"rxjs": "7.5.7"
"rxjs": "7.8.1"
}
}
14 changes: 7 additions & 7 deletions benchmarks/yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92acfd2

Please sign in to comment.