Multiprocessing is slower than single process
{'login': 'theo-m', 'id': 17948980, 'node_id': 'MDQ6VXNlcjE3OTQ4OTgw', 'avatar_url': 'https://avatars.githubusercontent.com/u/17948980?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/theo-m', 'html_url': 'https://github.com/theo-m', 'followers_url': 'https://api.github.com/users/theo-m/followers', 'following_url': 'https://api.github.com/users/theo-m/following{/other_user}', 'gists_url': 'https://api.github.com/users/theo-m/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/theo-m/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/theo-m/subscriptions', 'organizations_url': 'https://api.github.com/users/theo-m/orgs', 'repos_url': 'https://api.github.com/users/theo-m/repos', 'events_url': 'https://api.github.com/users/theo-m/events{/privacy}', 'received_events_url': 'https://api.github.com/users/theo-m/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
[]
dupe of #1992
```python
# benchmark_filter.py
import logging
import sys
import time

from datasets import load_dataset, set_caching_enabled


if __name__ == "__main__":
    set_caching_enabled(False)
    logging.basicConfig(level=logging.DEBUG)

    bc = load_dataset("bookcorpus")

    now = time.time()
    try:
        bc["train"].filter(lambda x: len(x["text"]) < 64, num_proc=int(sys.argv[1]))
    except Exception as e:
        print(f"cancelled: {e}")
    elapsed = time.time() - now

    print(elapsed)
```

Running `python benchmark_filter.py 1` (20min+) is faster than `python benchmark_filter.py 2` (2hrs+)
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2071/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}