<commit_before>var bemdecl = require('../lib/index'),
    opts = { harmony: true },
    normalize = function (entities) {
        return bemdecl.normalize(entities, opts);
    },
    decls = {
        blocks: [
            { block: 'block-1' },
            { block: 'block-2' },
            { block: 'block-3' }
        ],
        blockMods: [
            { block: 'block-1', modName: 'mod' },
            { block: 'block-2', modName: 'mod', modVal: true },
            { block: 'block-3', modName: 'mod', modVal: 'val' },
            { block: 'block-4', mods: { mod: 'val' } },
            { block: 'block-5', mods: ['mod-1', 'mod-2'] },
            { block: 'block-6', mods: { mod: ['val-1', 'val-2'] } }
        ],
        elems: [
            { block: 'block', elem: 'elem' },
            { block: 'block', elems: ['elem-1', 'elem-2'] }
        ],
        elemMods: [
            { block: 'block-1', elem: 'elem', modName: 'mod' },
            { block: 'block-2', elem: 'elem', modName: 'mod', modVal: true },
            { block: 'block-3', elem: 'elem', modName: 'mod', modVal: 'val' },
            { block: 'block-4', elem: 'elem', mods: { mod: 'val' } },
            { block: 'block-5', elem: 'elem', mods: ['mod-1', 'mod-2'] },
            { block: 'block-6', elem: 'elem', mods: { mod: ['val-1', 'val-2'] } }
        ]
    };
    decls.full = [].concat(decls.blocks, decls.blockMods, decls.elems, decls.elemMods);

suite('normalize', function () {
    set('interations', 200000);

    bench('blocks', function () {
        normalize(decls.blocks);
    });

    bench('block mods', function () {
        normalize(decls.blockMods);
    });

    bench('elems', function () {
        normalize(decls.elems);
    });

    bench('elem mods', function () {
        normalize(decls.elemMods);
    });

    bench('full', function () {
        normalize(decls.full);
    });
});
<commit_msg>Updated title of `normalize --harmony` bench<commit_after>var bemdecl = require('../lib/index'),
    opts = { harmony: true },
    normalize = function (entities) {
        return bemdecl.normalize(entities, opts);
    },
    decls = {
        blocks: [
            { block: 'block-1' },
            { block: 'block-2' },
            { block: 'block-3' }
        ],
        blockMods: [
            { block: 'block-1', modName: 'mod' },
            { block: 'block-2', modName: 'mod', modVal: true },
            { block: 'block-3', modName: 'mod', modVal: 'val' },
            { block: 'block-4', mods: { mod: 'val' } },
            { block: 'block-5', mods: ['mod-1', 'mod-2'] },
            { block: 'block-6', mods: { mod: ['val-1', 'val-2'] } }
        ],
        elems: [
            { block: 'block', elem: 'elem' },
            { block: 'block', elems: ['elem-1', 'elem-2'] }
        ],
        elemMods: [
            { block: 'block-1', elem: 'elem', modName: 'mod' },
            { block: 'block-2', elem: 'elem', modName: 'mod', modVal: true },
            { block: 'block-3', elem: 'elem', modName: 'mod', modVal: 'val' },
            { block: 'block-4', elem: 'elem', mods: { mod: 'val' } },
            { block: 'block-5', elem: 'elem', mods: ['mod-1', 'mod-2'] },
            { block: 'block-6', elem: 'elem', mods: { mod: ['val-1', 'val-2'] } }
        ]
    };
    decls.full = [].concat(decls.blocks, decls.blockMods, decls.elems, decls.elemMods);

suite('normalize --harmony', function () {
    set('interations', 200000);

    bench('blocks', function () {
        normalize(decls.blocks);
    });

    bench('block mods', function () {
        normalize(decls.blockMods);
    });

    bench('elems', function () {
        normalize(decls.elems);
    });

    bench('elem mods', function () {
        normalize(decls.elemMods);
    });

    bench('full', function () {
        normalize(decls.full);
    });
});

{'fraction_non_alphanumeric': 0.2112418300653595, 'fraction_numerical': 0.016209150326797386, 'mean_word_length': 1.945342571208622, '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': '1981659', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1309, 'n_words': 274}