ECWID interview test task
To build the executable file just execute make command
make buildTo file you need initialize environment variables.
export FILE_PATH="path/to/your/ip_addresses"
export STRATEGY="linear|concurrent"after environment initialization you can execute command with make.
make runYou can execute command in the bin/ directory after build stage to get more information.
./ip_extractor --helpTo run test execute the command.
make testStarted on Machine with 20 CPUs 16gb RAM on arch amd64. With 10mb chunk size. File size 107gb downloaded from here.
| Strategy | Time elapsed | Total allocated mb |
|---|---|---|
| concurrent | 51s | 692mb |
| linear | 4m39s | 522mb |