You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/benchmark/FJCreate.ts
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ import {
15
15
16
16
Log.global.level=Log.levels.ERROR;
17
17
18
-
constN=400;
18
+
constN=4000;
19
19
20
20
exportclassForkJoinReactorextendsReactor{
21
21
// private valueToCalculate;
@@ -30,13 +30,13 @@ export class ForkJoinReactor extends Reactor {
30
30
constval=inp.get();
31
31
if(val==null){
32
32
thrownewError(`inp is absent for ${this._name}`)
33
-
}
33
+
}
34
34
constsint=Math.sin(val);
35
35
constres=sint*sint;
36
36
if(res<=0){
37
37
thrownewError(`this is kinda insane, ${res}`);
38
38
}else{
39
-
console.log(`I am ${this._name}. I finished calculating at time${this.util.getCurrentLogicalTime()}. Result is ${res}`)
39
+
console.log(`I am ${this._name}. I finished calculating after ${this.util.getElapsedLogicalTime()};${this.util.getElapsedPhysicalTime()}. Result is ${res}`)
40
40
}
41
41
}
42
42
);
@@ -51,18 +51,20 @@ export class FJCreator extends Reactor {
0 commit comments