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.
Hi everyone,
i was wondering if puppeteer is really necessary. I forked this repo and replaced puppeteer with fetch. It's seems works very well and the performance are better:
Fixes #121
Closes #138 #139 #145
Benchmark
Code
Results
With puppeteer
run 1: 1132ms
run 2: 3223ms
run 3: 1433ms
run 4: 1612ms
run 5: 1088ms
run 6: 1833ms
run 7: 1367ms
run 8: 1674ms
run 9: 1715ms
run 10: 1540ms
avg: 1661.7ms
With fetch
run 1: 371ms
run 2: 170ms
run 3: 139ms
run 4: 150ms
run 5: 138ms
run 6: 159ms
run 7: 170ms
run 8: 154ms
run 9: 164ms
run 10: 133ms
avg: 174.8ms