<commit_before>import numpy as np
from chempy.tests.ammonical_cupric_solution import get_ammonical_cupric_eqsys


class TimeEqsys:

    def setup(self):
        self.eqsys, self.c0 = get_ammonical_cupric_eqsys()
        self.species = {s.name: s for s in self.eqsys.substances}

    def time_roots(self):
        x, new_inits, success = self.eqsys.roots(self.c0, self.species['NH3'],
                                                 np.logspace(-3, 0, 50))
        assert all(success)
<commit_msg>Also benchmark roots with carry=True<commit_after>import numpy as np
from chempy.tests.ammonical_cupric_solution import get_ammonical_cupric_eqsys


class TimeEqsys:

    def setup(self):
        self.eqsys, self.c0 = get_ammonical_cupric_eqsys()
        self.species = {s.name: s for s in self.eqsys.substances}

    def time_roots(self):
        x, new_inits, success = self.eqsys.roots(self.c0, self.species['NH3'],
                                                 np.logspace(-3, 0, 50))
        assert all(success)

    def time_roots_carry(self):
        x, new_inits, success = self.eqsys.roots(self.c0, self.species['NH3'],
                                                 np.logspace(-3, 0, 50),
                                                 carry=True)
        assert all(success)

{'fraction_non_alphanumeric': 0.0983733539891557, 'fraction_numerical': 0.015491866769945779, 'mean_word_length': 1.9907407407407407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594629', 'n_tokens_mistral': 427, 'n_tokens_neox': 392, 'n_words': 85}