Changeset 6e540ea for benchmark/creation


Ignore:
Timestamp:
Jan 8, 2020, 1:38:30 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
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)
Message:

additional corrections to harmonize with last benchmark update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/creation/JavaThread.java

    r580c11b r6e540ea  
    3333        }
    3434        public static void helper() throws InterruptedException {
    35                 for(int i = 1; i <= NoOfTimes; i += 1) {
     35                for(int i = 1; i <= times; i += 1) {
    3636                        MyThread m = new MyThread();
    3737                        x = nextRandom( x );
     
    4444                helper();
    4545                long end = System.nanoTime();
    46                 System.out.println( (end - start) / NoOfTimes );
     46                System.out.println( (end - start) / times );
    4747        }
    4848        public static void main(String[] args) throws InterruptedException {
     
    5252                for (int i = Integer.parseInt("5"); --i >= 0 ; ) {
    5353                        InnerMain();
    54                         Thread.sleep(2000);     // 2 seconds
     54                        Thread.sleep(2000);             // 2 seconds
    5555                        x = nextRandom(x);
    5656                }
Note: See TracChangeset for help on using the changeset viewer.