ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | 
            Last change
 on this file since b10c621c was             5013c62, checked in by Thierry Delisle <tdelisle@…>, 8 years ago           | 
        
        
          | 
             
added several benchmarks to measure creation, some work needs to be done on them 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            322 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [5013c62] | 1 | #include <coroutine>
 | 
|---|
 | 2 | #include <stdlib.h>
 | 
|---|
 | 3 | #include <stdio.h>
 | 
|---|
 | 4 | 
 | 
|---|
 | 5 | coroutine MyCoroutine {};
 | 
|---|
 | 6 | void main(MyCoroutine * this) {}
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | int main(int argc, char* argv[]) {
 | 
|---|
 | 9 |         size_t n = 1000000;
 | 
|---|
 | 10 |         if( argc > 2 ) return 1;
 | 
|---|
 | 11 |         if( argc == 2 ) {
 | 
|---|
 | 12 |                 n = atoi(argv[1]);
 | 
|---|
 | 13 |         }
 | 
|---|
 | 14 |         printf("%lu\n", n);
 | 
|---|
 | 15 |         for (size_t i = 0; i < n; i++) {
 | 
|---|
 | 16 |                 MyCoroutine m;
 | 
|---|
 | 17 |         }
 | 
|---|
 | 18 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.