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

Read csv file instead of an array of domains#97

Merged
michalczaplinski merged 3 commits intoperf-and-stress-testingfrom
read-csv-file
Oct 28, 2022
Merged

Read csv file instead of an array of domains#97
michalczaplinski merged 3 commits intoperf-and-stress-testingfrom
read-csv-file

Conversation

@SantosGuillamot
Copy link
Copy Markdown
Contributor

@SantosGuillamot SantosGuillamot commented Oct 28, 2022

Another thing we could do, especially if we are planning to test different files (which can be pretty big), is read a csv file instead of creating an array. In the long term, I feel is gonna be better.

In order to do that, I just added a fs.createReadStream('./benchmark/sites.csv'), parsed the csv and created an array of domains with the first column.

@michalczaplinski michalczaplinski merged commit 6b11c40 into perf-and-stress-testing Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants