<commit_before>=======
mark.js
=======

mark.js is a javascript benchmarking framework that allows you to create benchmarks
and store the results persistently via the browser's local storage API.  You
have the option to run multiple trials in a browser session or reload the page
at a later time and have the results from the previous sessions saved.

**NOTE** If you add more benchmarks, you should clear your reports so all the
benchmarks are consistent.

Usage::

    m = mark("Testing how hard Daniellindsleyrocksdahouse")
    m.register({
        name: "How long does it take Daniel to rock the foundation",
        setUp: function() {
            // Do some setup
            this.house = new House();
        },
        run: function() {
            this.house.danielLindsleyRocksDaFoundation()
        },
        tearDown: function() {
            // Do some tear down
        }
    });
    m.run();
    m.printResults()

*Dependencies:*

`store.js`_ - http://github.com/marcuswestin/store.js

.. _`store.js`: http://github.com/marcuswestin/store.js


TODO
~~~~

    * Add STDDEV and VARIANCE to the report fields.
    * Clicking on individual benchmarks should display performance graph over
        time using canvas API
    * Add ability to group and nest benchmarks.

This is still rough around the edges, please fork and make better

Thanks to <NAME> for store.js<commit_msg>Fixed todo list in the README<commit_after>=======
mark.js
=======

mark.js is a javascript benchmarking framework that allows you to create benchmarks
and store the results persistently via the browser's local storage API.  You
have the option to run multiple trials in a browser session or reload the page
at a later time and have the results from the previous sessions saved.

**NOTE** If you add more benchmarks, you should clear your reports so all the
benchmarks are consistent.

Usage::

    m = mark("Testing how hard Daniellindsleyrocksdahouse")
    m.register({
        name: "How long does it take Daniel to rock the foundation",
        setUp: function() {
            // Do some setup
            this.house = new House();
        },
        run: function() {
            this.house.danielLindsleyRocksDaFoundation()
        },
        tearDown: function() {
            // Do some tear down
        }
    });
    m.run();
    m.printResults()

*Dependencies:*

`store.js`_ - http://github.com/marcuswestin/store.js

.. _`store.js`: http://github.com/marcuswestin/store.js


TODO
~~~~

    * Add STDDEV and VARIANCE to the report fields.
    * Clicking on individual benchmarks should display performance graph over time using canvas API
    * Add ability to group and nest benchmarks.

This is still rough around the edges, please fork and make better

Thanks to <NAME> for store.js
{'fraction_non_alphanumeric': 0.08764367816091954, 'fraction_numerical': 0.0, 'mean_word_length': 2.7942779291553133, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2160859', 'n_tokens_mistral': 779, 'n_tokens_neox': 746, 'n_words': 322}