<commit_before>var naming = require('../index'),
    notations = {
        block: { block: 'block' },
        blockMod: { block: 'block', modName: 'mod-name', modVal: 'mod-val' },
        elem: { block: 'block', elem: 'elem' },
        elemMod: { block: 'block', elem: 'elem', modName: 'mod-name', modVal: 'mod-val' }
    };

suite('stringify', function () {
    set('iterations', 2000000);

    bench('block', function () {
        naming.stringify(notations.block);
    });

    bench('blockMod', function () {
        naming.stringify(notations.blockMod);
    });

    bench('elem', function () {
        naming.stringify(notations.elem);
    });

    bench('elemMod', function () {
        naming.stringify(notations.elemMod);
    });
});<commit_msg>benchmark(stringify): use mod field by default<commit_after>var naming = require('../index'),
    notations = {
        block: { block: 'block' },
        blockMod: { block: 'block', mod: { name: 'mod-name', val: 'mod-val' } },
        elem: { block: 'block', elem: 'elem' },
        elemMod: { block: 'block', elem: 'elem', mod: { name: 'mod-name', val: 'mod-val' } }
    };

suite('stringify', function () {
    set('iterations', 2000000);

    bench('block', function () {
        naming.stringify(notations.block);
    });

    bench('blockMod', function () {
        naming.stringify(notations.blockMod);
    });

    bench('elem', function () {
        naming.stringify(notations.elem);
    });

    bench('elemMod', function () {
        naming.stringify(notations.elemMod);
    });
});
{'fraction_non_alphanumeric': 0.19586296056884292, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 2.7941176470588234, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7423313', 'n_tokens_mistral': 496, 'n_tokens_neox': 471, 'n_words': 95}