<commit_before>! Copyright (C) 2003, 2008 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel math math.vectors memory io io.styles prettyprint
namespaces system sequences splitting grouping assocs strings ;
IN: tools.time

: benchmark ( quot -- runtime )
    micros >r call micros r> - ; inline

: time. ( data -- )
    unclip
    "==== RUNNING TIME" print nl pprint " us" print nl
    4 cut*
    "==== GARBAGE COLLECTION" print nl
    [
        6 group
        {
            "GC count:"
            "Cumulative GC time (us):"<commit_msg>Print runtime as a float<commit_after>! Copyright (C) 2003, 2008 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel math math.vectors memory io io.styles prettyprint
namespaces system sequences splitting grouping assocs strings ;
IN: tools.time

: benchmark ( quot -- runtime )
    micros >r call micros r> - ; inline

: time. ( data -- )
    unclip
    "==== RUNNING TIME" print nl 1000000 /f pprint " seconds" print nl
    4 cut*
    "==== GARBAGE COLLECTION" print nl
    [
        6 group
        {
            "GC count:"
            "Cumulative GC time (us):"
{'fraction_non_alphanumeric': 0.11130284728213978, 'fraction_numerical': 0.023295944779982744, 'mean_word_length': 2.5365853658536586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '332410', 'n_tokens_mistral': 377, 'n_tokens_neox': 353, 'n_words': 129}