This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
feat: add NFT bundler #713
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8137adf
feat: add NFT bundler
eduardoboucas 009b116
chore: add benchmark for NFT
eduardoboucas a92396d
chore: fix usage of `basePath` in tests
eduardoboucas f142338
refactor: add `basePath` to `listFunctionsFiles`
eduardoboucas bf8a1ea
chore: add `repositoryRoot` test
eduardoboucas 1f38f39
chore: remove docs for `repositoryRoot`
eduardoboucas 7ceec3b
feat: use `repositoryRoot` in NFT
eduardoboucas 77928a2
refactor: use `repositoryRoot` in `getSrcFiles`
eduardoboucas ddf103b
Merge branch 'main' into feat/nft-bundler
eduardoboucas be4179e
chore: increase maximum number of open files
eduardoboucas 0cfb5c0
chore: increase open file limit in MacOS
eduardoboucas File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const { join } = require('path') | ||
|
||
const { zipFunctions } = require('../dist/main') | ||
|
||
const { timeFunction } = require('./helpers/main') | ||
|
||
const BENCHMARK_OUTPUT = 'benchmarks/output' | ||
const RUNS = 3 | ||
|
||
const runBenchmarks = async function () { | ||
const func = join(__dirname, 'fixtures') | ||
|
||
const largeDepsNft = await timeFunction( | ||
() => | ||
zipFunctions(func, BENCHMARK_OUTPUT, { | ||
config: { '*': { nodeBundler: 'nft' } }, | ||
}), | ||
RUNS, | ||
) | ||
|
||
console.log(`${largeDepsNft}ms`) | ||
} | ||
|
||
runBenchmarks() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env bash | ||
npm ci --prefix benchmarks/fixtures | ||
npm run build | ||
node benchmarks/nft.js > .delta.largeDepsNft | ||
node benchmarks/zisi.js > .delta.largeDepsZisi | ||
node benchmarks/esbuild.js > .delta.largeDepsEsbuild |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this might need to have the shell specified
sudo /bin/bash -c "ulimit -l 65536"
. it will only work if processes are started from same shell, which i think they will be cos it's inside the same job