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 bc6f918 was             50abab9, checked in by Thierry Delisle <tdelisle@…>, 8 years ago | 
        
          | 
Added benchmarks for java and go
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            462 bytes | 
      
      
| Line |  | 
|---|
| 1 | public class JavaThread { | 
|---|
| 2 | public static class MyThread extends Thread { | 
|---|
| 3 | @Override | 
|---|
| 4 | public void run() {} | 
|---|
| 5 | } | 
|---|
| 6 |  | 
|---|
| 7 | public static void main(String[] args) throws InterruptedException { | 
|---|
| 8 | int NoOfTimes = 50000; | 
|---|
| 9 | long start = System.nanoTime(); | 
|---|
| 10 | for(int i = 1; i <= NoOfTimes; i += 1) { | 
|---|
| 11 | JavaThread.MyThread m = new JavaThread.MyThread(); | 
|---|
| 12 | m.start(); | 
|---|
| 13 | m.join(); | 
|---|
| 14 | } | 
|---|
| 15 | long end = System.nanoTime(); | 
|---|
| 16 | System.out.println( (end - start) / NoOfTimes); | 
|---|
| 17 | } | 
|---|
| 18 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.