Skip to content

Commit

Permalink
test: debug bench size .prisma/client
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Mar 26, 2021
1 parent 228a125 commit 6c66a0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Expand Up @@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v2
env:
Expand All @@ -46,11 +47,14 @@ jobs:
CI: true
SKIP_GIT: true
GITHUB_CONTEXT: ${{ toJson(github) }}

# This is required as setup.sh can modify pnpm-lock.yml
- run: rm -f src/pnpm-lock.yaml
- run: rm -f ./pnpm-lock.yaml

- name: Run benchmarks
run: pnpm run bench

- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
Expand Down
Expand Up @@ -51,11 +51,11 @@ suite
const regex = new RegExp(/([\d]{1,99}([.]\d{1,99})?)(\w)/)

function getSize(packageName: string): { size: string; unit: string } {
// const listFiles = execa.sync('ls', ['-la', `./node_modules/${packageName}`], {
// stdout: 'pipe',
// cwd: __dirname,
// })
// console.log(listFiles)
const listFiles = execa.sync('ls', ['-la', `./node_modules/${packageName}`], {
stdout: 'pipe',
cwd: __dirname,
})
console.log(listFiles)

const output = execa.sync('du', ['-sh', `./node_modules/${packageName}`], {
stdout: 'pipe',
Expand Down

0 comments on commit 6c66a0a

Please sign in to comment.