File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ <h1>ReactPy Event Driven Renders Per Second Test Page</h1>
17
17
< p > Total Active Components: < b id ="total-active "> </ b > </ p >
18
18
< p > Time To Load: < b id ="time-to-load " data-num =0 > </ b > </ p >
19
19
< p > Event Renders Per Second: < b id ="total-erps "> </ b > </ p >
20
+ < p > Event Renders Per Second (Estimated Minimum): < b id ="min-rps "> </ b > </ p >
20
21
< p > Average Round-Trip Time: < b id ="avg-event-rt "> </ b > </ p >
21
22
</ b >
22
23
@@ -50,6 +51,16 @@ <h1>ReactPy Event Driven Renders Per Second Test Page</h1>
50
51
}
51
52
document . getElementById ( "total-erps" ) . textContent = totalEPS ;
52
53
54
+ // Calculate Min RPS
55
+ let minRPS = 0 ;
56
+ for ( let i = 0 ; i < elements . length ; i ++ ) {
57
+ let rpsValue = parseFloat ( elements [ i ] . getAttribute ( "data-erps" ) ) ;
58
+ if ( rpsValue < minRPS || minRPS == 0 ) {
59
+ minRPS = rpsValue ;
60
+ }
61
+ }
62
+ document . getElementById ( "min-rps" ) . textContent = minRPS * elements . length ;
63
+
53
64
// Calculate Average Event Round-Trip Time
54
65
document . getElementById ( "avg-event-rt" ) . textContent = ( ( 1000 / totalEPS ) * elements . length ) . toFixed ( 4 ) + " ms" ;
55
66
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ <h1>ReactPy IO/CPU Mixed Renders Per Second Test Page</h1>
17
17
< p > Total Active Components: < b id ="total-active "> </ b > </ p >
18
18
< p > Time To Load: < b id ="time-to-load " data-num =0 > </ b > </ p >
19
19
< p > Total Renders Per Second: < b id ="total-rps "> </ b > </ p >
20
+ < p > Total Renders Per Second (Estimated Minimum): < b id ="min-rps "> </ b > </ p >
20
21
</ b >
21
22
22
23
< script >
@@ -43,6 +44,16 @@ <h1>ReactPy IO/CPU Mixed Renders Per Second Test Page</h1>
43
44
}
44
45
document . getElementById ( "total-rps" ) . textContent = totalRPS ;
45
46
47
+ // Calculate Min RPS
48
+ let minRPS = 0 ;
49
+ for ( let i = 0 ; i < elements . length ; i ++ ) {
50
+ let rpsValue = parseFloat ( elements [ i ] . getAttribute ( "data-rps" ) ) ;
51
+ if ( rpsValue < minRPS || minRPS == 0 ) {
52
+ minRPS = rpsValue ;
53
+ }
54
+ }
55
+ document . getElementById ( "min-rps" ) . textContent = minRPS * elements . length ;
56
+
46
57
await new Promise ( resolve => setTimeout ( resolve , 50 ) ) ;
47
58
}
48
59
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ <h1>ReactPy Renders Per Second Test Page</h1>
17
17
< p > Total Active Components: < b id ="total-active "> </ b > </ p >
18
18
< p > Time To Load: < b id ="time-to-load " data-num =0 > </ b > </ p >
19
19
< p > Total Renders Per Second: < b id ="total-rps "> </ b > </ p >
20
+ < p > Total Renders Per Second (Estimated Minimum): < b id ="min-rps "> </ b > </ p >
20
21
</ b >
21
22
22
23
< script >
@@ -43,6 +44,16 @@ <h1>ReactPy Renders Per Second Test Page</h1>
43
44
}
44
45
document . getElementById ( "total-rps" ) . textContent = totalRPS ;
45
46
47
+ // Calculate Min RPS
48
+ let minRPS = 0 ;
49
+ for ( let i = 0 ; i < elements . length ; i ++ ) {
50
+ let rpsValue = parseFloat ( elements [ i ] . getAttribute ( "data-rps" ) ) ;
51
+ if ( rpsValue < minRPS || minRPS == 0 ) {
52
+ minRPS = rpsValue ;
53
+ }
54
+ }
55
+ document . getElementById ( "min-rps" ) . textContent = minRPS * elements . length ;
56
+
46
57
await new Promise ( resolve => setTimeout ( resolve , 50 ) ) ;
47
58
}
48
59
}
You can’t perform that action at this time.
0 commit comments