Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 5328f01

Browse files
committedMay 24, 2020
Squashed commit of the following:
commit 6a03a6bdde9dab396c0fefbcf29fd5a5d58dc358 Author: Zoltan Kochan <z@kochan.io> Date: Sun May 24 14:30:52 2020 +0300 run benchmarks commit af0606d89757bb4cc8a42062a89a77b406e45320 Author: Zoltan Kochan <z@kochan.io> Date: Sun May 24 12:47:28 2020 +0300 feat: show always the fastest benchmarks, not the average commit 88ece77 Author: Zoltan Kochan <z@kochan.io> Date: Sat May 23 17:43:46 2020 +0300 run benchmarks for pnpm v5.0.0-rc.1 commit 4aa0cf5 Author: Zoltan Kochan <z@kochan.io> Date: Wed May 20 21:45:06 2020 +0300 Run benchmarks for pnpm v5.0.0-alpha.7 commit d688a00 Author: Zoltan Kochan <z@kochan.io> Date: Sat May 16 18:27:09 2020 +0300 rerun with alpha 6 commit fe1a60f Author: Zoltan Kochan <z@kochan.io> Date: Sat May 9 12:18:40 2020 +0300 update benchmarks with alpha v5 commit 05cd68d Author: Zoltan Kochan <z@kochan.io> Date: Sun May 3 18:21:24 2020 +0300 rerun with pnpm v5.0.0-alpha.3 commit 3d68286 Author: Zoltan Kochan <z@kochan.io> Date: Sun Apr 26 01:14:20 2020 +0300 chore: bench pnpm v5 alpha
1 parent 82e8144 commit 5328f01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1593
-396
lines changed
 

‎README.md

+45-45
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ The app's `package.json` [here](./fixtures/react-app/package.json)
2020

2121
| action | cache | lockfile | node_modules| npm | pnpm | Yarn | Yarn PnP |
2222
| --- | --- | --- | --- | --- | --- | --- | --- |
23-
| install | | | | 27.1s | 21.7s | 21.5s | 16.8s |
24-
| install |||| 7.2s | 1.1s | 759ms | n/a |
25-
| install ||| | 16.1s | 6.7s | 5.7s | 1.7s |
26-
| install || | | 21.2s | 11.3s | 10.8s | 6.8s |
27-
| install | || | 19.3s | 18.1s | 15.4s | 11.4s |
28-
| install || || 6.9s | 2.7s | 9s | n/a |
29-
| install | ||| 7.2s | 1.1s | 804ms | n/a |
30-
| install | | || 6.6s | 5.1s | 20.1s | n/a |
31-
| update | n/a | n/a | n/a | 7s | 19.4s | 23.8s | 18.9s |
23+
| install | | | | 27.5s | 14.4s | 20.2s | 15.4s |
24+
| install |||| 7.1s | 1.4s | 807ms | n/a |
25+
| install ||| | 16.3s | 6.6s | 5.6s | 1.7s |
26+
| install || | | 21s | 9.3s | 10.9s | 6.3s |
27+
| install | || | 20s | 12.3s | 15.2s | 10.6s |
28+
| install || || 6.6s | 1s | 8s | n/a |
29+
| install | ||| 6.9s | 1.4s | 785ms | n/a |
30+
| install | | || 6.9s | 1.3s | 20.4s | n/a |
31+
| update | n/a | n/a | n/a | 7.2s | 12.3s | 23.6s | 17.3s |
3232

3333
![Graph of the react-app results](./results/imgs/react-app.svg)
3434

@@ -38,15 +38,15 @@ The app's `package.json` [here](./fixtures/ember-quickstart/package.json)
3838

3939
| action | cache | lockfile | node_modules| npm | pnpm | Yarn | Yarn PnP |
4040
| --- | --- | --- | --- | --- | --- | --- | --- |
41-
| install | | | | 28.7s | 17.6s | 18.8s | 17s |
42-
| install |||| 6.2s | 1s | 673ms | n/a |
43-
| install ||| | 12.5s | 5.5s | 5.1s | 1.7s |
44-
| install || | | 17.5s | 11.1s | 11.2s | 7.3s |
45-
| install | || | 15.7s | 15.1s | 14s | 11.1s |
46-
| install || || 5.9s | 1.4s | 9.6s | n/a |
47-
| install | ||| 6.2s | 13.8s | 682ms | n/a |
48-
| install | | || 5.9s | 2.6s | 18.3s | n/a |
49-
| update | n/a | n/a | n/a | 5.9s | 15.3s | 22.7s | 15.7s |
41+
| install | | | | 21s | 12.3s | 18.1s | 15.7s |
42+
| install |||| 6.7s | 1.3s | 652ms | n/a |
43+
| install ||| | 11.7s | 5.3s | 4.3s | 1.6s |
44+
| install || | | 15.7s | 7.7s | 9.5s | 6.8s |
45+
| install | || | 15.1s | 10.6s | 12.4s | 9.8s |
46+
| install || || 5.3s | 1.1s | 9s | n/a |
47+
| install | ||| 5.5s | 1.3s | 658ms | n/a |
48+
| install | | || 5.5s | 1.2s | 17.3s | n/a |
49+
| update | n/a | n/a | n/a | 5.7s | 10.4s | 18.2s | 14.3s |
5050

5151
![Graph of the ember-quickstart results](./results/imgs/ember-quickstart.svg)
5252

@@ -56,15 +56,15 @@ The app's `package.json` [here](./fixtures/angular-quickstart/package.json)
5656

5757
| action | cache | lockfile | node_modules| npm | pnpm | Yarn | Yarn PnP |
5858
| --- | --- | --- | --- | --- | --- | --- | --- |
59-
| install | | | | 32.4s | 27.1s | 28.3s | 25s |
60-
| install |||| 7.1s | 1.1s | 746ms | n/a |
61-
| install ||| | 17.5s | 8.4s | 7.4s | 2s |
62-
| install || | | 23.8s | 13.3s | 16.2s | 11.5s |
63-
| install | || | 22.9s | 22.8s | 20.7s | 15.7s |
64-
| install || || 6.8s | 4s | 10.9s | n/a |
65-
| install | ||| 7.4s | 1.3s | 764ms | n/a |
66-
| install | | || 6.8s | 10s | 29.9s | n/a |
67-
| update | n/a | n/a | n/a | 7.1s | 18.2s | 21.3s | 13.6s |
59+
| install | | | | 31.3s | 18.3s | 29.1s | 23.1s |
60+
| install |||| 7.3s | 1.5s | 795ms | n/a |
61+
| install ||| | 18s | 8.8s | 7.5s | 1.8s |
62+
| install || | | 23.1s | 11.5s | 14.1s | 8.3s |
63+
| install | || | 23s | 16.3s | 21s | 14.3s |
64+
| install || || 7.1s | 2.3s | 11.3s | n/a |
65+
| install | ||| 7.4s | 1.4s | 764ms | n/a |
66+
| install | | || 7s | 4.2s | 26.8s | n/a |
67+
| update | n/a | n/a | n/a | 7.6s | 14.9s | 20.8s | 12.3s |
6868

6969
![Graph of the angular-quickstart results](./results/imgs/angular-quickstart.svg)
7070

@@ -74,15 +74,15 @@ The app's `package.json` [here](./fixtures/medium-size-app/package.json)
7474

7575
| action | cache | lockfile | node_modules| npm | pnpm | Yarn | Yarn PnP |
7676
| --- | --- | --- | --- | --- | --- | --- | --- |
77-
| install | | | | 27.9s | 21.7s | 28s | 22.4s |
78-
| install |||| 6.7s | 1s | 687ms | n/a |
79-
| install ||| | 14.9s | 6.7s | 5.8s | 1.8s |
80-
| install || | | 21s | 10.4s | 14.3s | 13.3s |
81-
| install | || | 18.6s | 21.4s | 17s | 13.3s |
82-
| install || || 6.7s | 2.8s | 12.2s | n/a |
83-
| install | ||| 6.8s | 18.6s | 751ms | n/a |
84-
| install | | || 6.5s | 8s | 25.5s | n/a |
85-
| update | n/a | n/a | n/a | 6.5s | 15.7s | 22.4s | 21.3s |
77+
| install | | | | 26.6s | 14.7s | 28.1s | 20.9s |
78+
| install |||| 7s | 1.4s | 669ms | n/a |
79+
| install ||| | 14.2s | 6.8s | 5.7s | 1.7s |
80+
| install || | | 19.9s | 9.3s | 12.8s | 9.5s |
81+
| install | || | 17.5s | 12.6s | 16.5s | 12.9s |
82+
| install || || 6s | 1.4s | 11s | n/a |
83+
| install | ||| 6s | 1.4s | 661ms | n/a |
84+
| install | | || 6.3s | 2.3s | 23.8s | n/a |
85+
| update | n/a | n/a | n/a | 6.2s | 12.2s | 22.2s | 20.8s |
8686

8787
![Graph of the medium-size-app results](./results/imgs/medium-size-app.svg)
8888

@@ -92,14 +92,14 @@ The app's `package.json` [here](./fixtures/alotta-files/package.json)
9292

9393
| action | cache | lockfile | node_modules| npm | pnpm | Yarn | Yarn PnP |
9494
| --- | --- | --- | --- | --- | --- | --- | --- |
95-
| install | | | | 45.3s | 26.5s | 35.6s | 30.3s |
96-
| install |||| 8.1s | 1.2s | 734ms | n/a |
97-
| install ||| | 18.9s | 7.7s | 10.8s | 1.9s |
98-
| install || | | 25.3s | 13.3s | 23.9s | 13.9s |
99-
| install | || | 24.5s | 29.2s | 22.9s | 13.7s |
100-
| install || || 6.8s | 3.8s | 17.7s | n/a |
101-
| install | ||| 7.2s | 1.4s | 722ms | n/a |
102-
| install | | || 6.8s | 10.3s | 49.9s | n/a |
103-
| update | n/a | n/a | n/a | 10.2s | 22s | 41.7s | 28.7s |
95+
| install | | | | 43.3s | 17.5s | 36.7s | 28.6s |
96+
| install |||| 7s | 1.5s | 735ms | n/a |
97+
| install ||| | 18.3s | 7.8s | 10.5s | 1.8s |
98+
| install || | | 24.8s | 10.9s | 22.2s | 12.1s |
99+
| install | || | 23.2s | 15.2s | 22.4s | 13.4s |
100+
| install || || 6.4s | 1.8s | 17.1s | n/a |
101+
| install | ||| 7.3s | 1.5s | 735ms | n/a |
102+
| install | | || 6.4s | 3.1s | 33.2s | n/a |
103+
| update | n/a | n/a | n/a | 7s | 14.5s | 42.6s | 27.6s |
104104

105105
![Graph of the alotta-files results](./results/imgs/alotta-files.svg)

‎index.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ async function run () {
106106
const sections = []
107107
const svgs = []
108108
for (const fixture of fixtures) {
109-
const npmRes = average(await benchmark(cmdsMap.npm, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
110-
const yarnRes = average(await benchmark(cmdsMap.yarn, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
111-
const yarnPnPRes = average(await benchmark(cmdsMap.yarn_pnp, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: false}))
112-
const pnpmRes = average(await benchmark(cmdsMap.pnpm, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
109+
const npmRes = min(await benchmark(cmdsMap.npm, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
110+
const yarnRes = min(await benchmark(cmdsMap.yarn, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
111+
const yarnPnPRes = min(await benchmark(cmdsMap.yarn_pnp, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: false}))
112+
const pnpmRes = min(await benchmark(cmdsMap.pnpm, fixture.name, {limitRuns: LIMIT_RUNS, hasNodeModules: true}))
113113
const resArray = toArray(pms, {
114114
'npm': npmRes,
115115
'pnpm': pnpmRes,
@@ -185,6 +185,14 @@ function average (benchmarkResults) {
185185
return results
186186
}
187187

188+
function min (benchmarkResults) {
189+
const results = {}
190+
tests.forEach(test => {
191+
results[test] = Math.min.apply(Math, benchmarkResults.map(res => res[test]))
192+
})
193+
return results
194+
}
195+
188196
function sum (a, b) {
189197
return a + b
190198
}

0 commit comments

Comments
 (0)
This repository has been archived.