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 6dba9f99 was             6aa537a4, checked in by Thierry Delisle <tdelisle@…>, 8 years ago           | 
        
        
          | 
             
Added java benchmarks 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            347 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | public class JavaThread {
 | 
|---|
| 2 |         public synchronized void noop() {}
 | 
|---|
| 3 | 
 | 
|---|
| 4 |         public static void main(String[] args) {
 | 
|---|
| 5 |                 int NoOfTimes = 5000000;
 | 
|---|
| 6 |                 JavaThread j = new JavaThread();
 | 
|---|
| 7 |                 long start = System.nanoTime();
 | 
|---|
| 8 |                 for(int i = 1; i <= NoOfTimes; i += 1) {
 | 
|---|
| 9 |                         j.noop();
 | 
|---|
| 10 |                 }
 | 
|---|
| 11 |                 long end = System.nanoTime();
 | 
|---|
| 12 |                 System.out.println( (end - start) / NoOfTimes);
 | 
|---|
| 13 |         }
 | 
|---|
| 14 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.