<commit_before><?php

namespace Fuel\Tasks;

class Show
{
    public function result_table()
    {
        $output = APPPATH . '/cache/benchmark-results.json';
        $results = json_decode(file_get_contents($output), true);

        echo '|orm                |time               |memory     |' . "\n";
        echo '|-------------------|------------------:|----------:|' . "\n";

        foreach ($results as $orm => $result) {
            printf("|%-19s|%19s|%11s|\n", $orm, $result['time'], $result['memory']);
        }
    }
}
<commit_msg>Fix output table format<commit_after><?php

namespace Fuel\Tasks;

class Show
{
    public function result_table()
    {
        $output = APPPATH . '/cache/benchmark-results.json';
        $results = json_decode(file_get_contents($output), true);

        echo '|orm                |time (ms)|memory   |' . "\n";
        echo '|-------------------|--------:|--------:|' . "\n";

        foreach ($results as $orm => $result) {
            printf("|%-19s|%9.2f|%9.2f|\n", $orm, round($result['time'], 2), round($result['memory'], 2));
        }
    }
}

{'fraction_non_alphanumeric': 0.25318761384335153, 'fraction_numerical': 0.012750455373406194, 'mean_word_length': 1.7202970297029703, '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': '2847245', 'n_tokens_mistral': 355, 'n_tokens_neox': 336, 'n_words': 65}