Skip to content

Commit

Permalink
Pack directories benchmark in README
Browse files Browse the repository at this point in the history
  • Loading branch information
lafkpages committed Oct 17, 2023
1 parent be645f5 commit 9063334
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ Summary: `fast-asar` is 1.54 ± 0.41 times faster than `@electron/asar`.

To run this benchmark yourself, run `bun run benchmark:extract`.

### Pack directories

This benchmark packs the `src` directory into an ASAR archive at `test/ignore/src.asar`.

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
| :------------------------------------------------------- | -----------: | -------: | -------: | ----------: |
| `./node_modules/.bin/asar pack src test/ignore/src.asar` | 154.7 ± 45.3 | 123.4 | 231.7 | 1.93 ± 0.57 |
| `bun ./src/cli/index.ts pack src test/ignore/src.asar` | 80.0 ± 3.1 | 77.6 | 85.4 | 1.00 |

Summary: `fast-asar` is 1.93 ± 0.57 times faster than `@electron/asar`.

To run this benchmark yourself, run `bun run benchmark:pack`.

### List files

This benchmark lists all files in the Replit Desktop app's `app.asar` file.
Expand Down

0 comments on commit 9063334

Please sign in to comment.