File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,22 @@ class Counter {
2121 this . valueInternal -- ;
2222 }
2323
24- someOtherMathod1 ( ) {
24+ someOtherMethod1 ( ) {
2525 console . log ( this . valueInternal ) ;
2626 }
27- someOtherMathod2 ( ) {
27+ someOtherMethod2 ( ) {
2828 console . log ( this . valueInternal ) ;
2929 }
30- someOtherMathod3 ( ) {
30+ someOtherxcf3 ( ) {
3131 console . log ( this . valueInternal ) ;
3232 }
33- someOtherMathod4 ( ) {
33+ someOtherMethod4 ( ) {
3434 console . log ( this . valueInternal ) ;
3535 }
36- someOtherMathod5 ( ) {
36+ someOtherMethod5 ( ) {
3737 console . log ( this . valueInternal ) ;
3838 }
39- someOtherMathod6 ( ) {
39+ someOtherMethod6 ( ) {
4040 console . log ( this . valueInternal ) ;
4141 }
4242}
@@ -48,5 +48,5 @@ const instances = new Array(1000).fill({}).map(getInstance2);
4848const time2 = process . hrtime . bigint ( ) ;
4949const mem2 = process . memoryUsage ( ) ;
5050
51- console . log ( `Memory Used: ${ mem2 . heapUsed - mem1 . heapUsed } bytes` ) ; // Memory Used: 128528 bytes
51+ console . log ( `Memory Used: ${ mem2 . heapUsed - mem1 . heapUsed } bytes` ) ; // Memory Used: Method bytes
5252console . log ( `Time taken: ${ time2 - time1 } nanoseconds` ) ; // Time taken: 586271 nanoseconds
Original file line number Diff line number Diff line change @@ -14,22 +14,22 @@ const getInstance = props => {
1414 valueInternal . value -- ;
1515 } ,
1616
17- someOtherMathod1 ( ) {
17+ someOtherMethod1 ( ) {
1818 console . log ( valueInternal . value ) ;
1919 } ,
20- someOtherMathod2 ( ) {
20+ someOtherMethod2 ( ) {
2121 console . log ( valueInternal . value ) ;
2222 } ,
23- someOtherMathod3 ( ) {
23+ someOtherMethod3 ( ) {
2424 console . log ( valueInternal . value ) ;
2525 } ,
26- someOtherMathod4 ( ) {
26+ someOtherMethod4 ( ) {
2727 console . log ( valueInternal . value ) ;
2828 } ,
29- someOtherMathod5 ( ) {
29+ someOtherMethod5 ( ) {
3030 console . log ( valueInternal . value ) ;
3131 } ,
32- someOtherMathod6 ( ) {
32+ someOtherMethod6 ( ) {
3333 console . log ( valueInternal . value ) ;
3434 }
3535 } ;
You can’t perform that action at this time.
0 commit comments