Skip to content

Commit

Permalink
week_3: with different conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
vd89 committed Aug 14, 2022
1 parent d344171 commit 1ffbd8b
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions Week-3/exercise_3.1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,39 @@ timeEnd("process_4");
/*
Function called for Operation 300
Printing Cache Map(1) { '100,200' => 300 }
process_1: 5.239ms
process_1: 4.671ms
Function called for Operation 200
Printing Cache Map(2) { '100,200' => 300, '100,100' => 200 }
process_2: 0.304ms
process_3: 0.015ms
process_4: 0.008ms
process_2: 0.244ms
process_3: 0.007ms
process_4: 0.013ms
*/

time("process_1");
memorizeAdd(200,100);
timeEnd("process_1");
time("process_2");
memorizeAdd(100,100);
timeEnd("process_2");
time("process_3");
memorizeAdd(100,100);
timeEnd("process_3");
time("process_4");
memorizeAdd(200,100);
timeEnd("process_4");
time("process_5");
memorizeAdd(200,100);
timeEnd("process_5");


/*
Function called for Operation 300
Printing Cache Map(1) { '200,100' => 300 }
process_1: 4.955ms
Function called for Operation 200
Printing Cache Map(2) { '200,100' => 300, '100,100' => 200 }
process_2: 0.351ms
process_3: 0.008ms
process_4: 0.007ms
process_5: 0.01ms
*/

0 comments on commit 1ffbd8b

Please sign in to comment.