Ignore:
Timestamp:
Apr 12, 2017, 10:15:20 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
19518e8
Parents:
549950c (diff), 0d10090 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/generic_types/evaluation/cpp-bench.cpp

    r549950c r50b7e8c  
    11#include <algorithm>
     2#include <fstream>
    23#include <stdlib.h>
    34#include <utility>
    45#include "bench.hpp"
    56#include "cpp-stack.hpp"
     7#include "cpp-print.hpp"
    68
    79int main(int argc, char** argv) {
     
    4547                max2 = std::max( max2, t2.pop() );
    4648        )
     49
     50        std::ofstream out{"cpp-out.txt"};
     51        REPEAT_TIMED( "print_int",
     52                print( out, rand(), ":", rand(), "\n" );
     53        )
     54
     55        REPEAT_TIMED( "print_pair",
     56                print( out, std::pair<bool, char>{ rand() & 0x1, rand() & 0x7F }, ":",
     57                                std::pair<bool, char>{ rand() & 0x1, rand() & 0x7F }, "\n" );
     58        )
    4759}
Note: See TracChangeset for help on using the changeset viewer.