Skip to content

Commit

Permalink
Merge pull request 'feat: benchmarks' (#26) from feat/benchmarks into…
Browse files Browse the repository at this point in the history
  • Loading branch information
tester-testing-person committed Apr 8, 2024
2 parents 61d4a38 + 1f62057 commit 7127f42
Show file tree
Hide file tree
Showing 28 changed files with 840 additions and 108 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can enable fuse by adding it to the `workspaces` value in `package.json`:

```json
"workspaces": [
"packages/!(fuse)",
"packages/!(fuse|benchmarks)",
"packages/fuse"
]
```
Expand Down Expand Up @@ -191,3 +191,29 @@ node packages/cli/dist/src/index.js list-groups
```
node packages/cli/dist/src/index.js join-group $GROUP
```

## Benchmarks

You can enable benchmarks by adding it to the `workspaces` value in `package.json`:

```json
"workspaces": [
"packages/!(fuse|benchmarks)",
"packages/benchmarks"
]
```

Then you can build the benchmarks package as usual:

```
npm ci
npm run build
```

### Transfer

To run the transfer benchmark:

```
node packages/benchmarks/dist/src/transfer/index.js
```
116 changes: 84 additions & 32 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
},
"private": true,
"workspaces": [
"packages/!(fuse)"
"packages/!(fuse|benchmarks)"
]
}
8 changes: 8 additions & 0 deletions packages/benchmarks/.aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
build: {
config: {
platform: 'node',
format: 'esm'
}
}
}
3 changes: 3 additions & 0 deletions packages/benchmarks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Benchmarks

Benchmarks for the distributed backup.
Loading

0 comments on commit 7127f42

Please sign in to comment.