Changeset 6e540ea for benchmark/creation/JavaThread.java
- Timestamp:
- Jan 8, 2020, 1:38:30 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4eb07bc
- Parents:
- 580c11b
- git-author:
- Peter A. Buhr <pabuhr@…> (01/08/20 13:37:09)
- git-committer:
- Peter A. Buhr <pabuhr@…> (01/08/20 13:38:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/creation/JavaThread.java
r580c11b r6e540ea 33 33 } 34 34 public static void helper() throws InterruptedException { 35 for(int i = 1; i <= NoOfTimes; i += 1) {35 for(int i = 1; i <= times; i += 1) { 36 36 MyThread m = new MyThread(); 37 37 x = nextRandom( x ); … … 44 44 helper(); 45 45 long end = System.nanoTime(); 46 System.out.println( (end - start) / NoOfTimes );46 System.out.println( (end - start) / times ); 47 47 } 48 48 public static void main(String[] args) throws InterruptedException { … … 52 52 for (int i = Integer.parseInt("5"); --i >= 0 ; ) { 53 53 InnerMain(); 54 Thread.sleep(2000); // 2 seconds54 Thread.sleep(2000); // 2 seconds 55 55 x = nextRandom(x); 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.