Changeset a381b46 for doc/generic_types/evaluation/cpp-vbench.cpp
- Timestamp:
- Apr 15, 2017, 7:09:59 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c57d1935
- Parents:
- 308880c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cpp-vbench.cpp
r308880c ra381b46 8 8 int main(int argc, char** argv) { 9 9 std::ofstream out{"cpp-vout.txt"}; 10 integer max{ 0 }; 10 11 stack s, t; 11 integer max{ 0 };12 12 13 REPEAT_TIMED( "push_int", s.push( make<integer>( _i ) ); ) 13 14 TIMED( "copy_int", t = s; ) … … 18 19 print( out, integer{_i}, c_string{":"}, integer{_i}, c_string{"\n"} ); ) 19 20 21 ptr<pair> max1 = make<pair>( make<boolean>(false), make<character>('\0') ); 20 22 stack s1, t1; 21 ptr<pair> max1 = make<pair>( make<boolean>(false), make<character>('\0') );23 22 24 REPEAT_TIMED( "push_bool_char", 23 25 s1.push( make<pair>( make<boolean>(_i & 1), make<character>(_i & 0x7F) ) ); )
Note: See TracChangeset
for help on using the changeset viewer.