scikit-learn/scikit-learn — comment on commit fdc8044246e2a93b2301f2c279f665e2f7b34860
File:  line 0
By ogrisel:

As expected it's 3 times slower and it starts to be slow at 1 million of samples:

```
>>> from sklearn.metrics import precision_recall_fscore_support, precision_score, recall_score, f1_score
>>> y_true = np.random.randint(3, size=int(1e6))
>>> y_pred = np.random.randint(3, size=int(1e6))
>>> %timeit precision_score(y_true, y_pred), recall_score(y_true, y_pred), f1_score(y_true, y_pred)
1 loops, best of 3: 1.72 s per loop
>>> %timeit precision_recall_fscore_support(y_true, y_pred)
1 loops, best of 3: 567 ms per loop
```

It's also more verbose to import and call the 3 functions separately.