Hi Muna,
For large-scale parallel tasks like 10,000 iterations, using batch is generally better than parfeval because batch submits jobs to the cluster’s scheduler, which manages resources and scales more efficiently. parfeval runs tasks within an existing parallel pool and can run out of resources if too many futures are queued.
To share files with the cluster workers with batch, make sure to include necessary files using the AttachedFiles option so workers have access to your files. More information about files access from workers is present in the below documenation:
Hope this helps you chosse between parfeval and batch processing
