z80 (zilogz80)

Race #20

View Pit Stop page for race #20 by zilogz80Ghost race

View profile for z80 (zilogz80)

Official speed 31.76 wpm (204.79 seconds elapsed during race)
Without ending ping 31.78 wpm (107 ms delay sending score to TypeRacer’s server)
Timerless 31.89 wpm (727 ms elapsed before first character typed; 203.95 seconds elapsed during race)
Timerless minus one 31.83 wpm, ignoring the first character typed
Race Start December 2, 2023 4:21:40am UTC
Race Finish December 2, 2023 4:25:05am UTC
Outcome No win (2 of 3)
Accuracy 99.3%
Points 47.10
Text #10000 (Length: 542 characters)

/* Read a set of characters from the socket */ StringBuffer command = new StringBuffer(); int expected = 1024; /* Cut off to avoid DoS attack */ while (expected < shutdown.length()) { if (random == null) random = new Random(System.currentTimeMillis()); expected += (random.nextInt() % 1024); } while (expected > 0) { int ch = -1; try { ch = stream.read(); } catch (IOException e) { log.warn("StandardServer.await: read: ", e); ch = -1; } if (ch < 32) /* Control character or EOF terminates loop break; command.append((char) ch); expected--; }

Characters typed /W* Read a set of characters from the socket */ StringBuffer command = new StringBuffer(); int expected = 1024; /* Cut off to avoid DoS attack */ while (expected < shutdown.length()) { if (random == null) random = new Random(System. cucurrentTimeMillis()); expected += (random.nextInt() % 1024); } while (expected > 0) { int ch = -1; try { ch = strieam.read(); } catch (IOException e) { log.warn("StandardServer.await: read: ", e); ch (= -1; } if (ch < 32) /* Control character or EOF terminates loop break; command.append((char) ch); expected--; }
Timing
Character / W -W * R e a d a s e t o f c h a r a c
Milliseconds 727 1242 996 1543 544 847 261 91 147 283 288 107 224 90 138 139 250 129 170 256 100 125 194 132 249
Character t e r s f r o m t h e s o c k e t * / S
Milliseconds 230 121 129 224 132 291 110 57 146 168 155 51 65 80 197 92 192 143 181 82 454 1158 1115 582 922
Character t r i n g B u f f e r c o m m a n d = n e w
Milliseconds 284 151 134 94 86 448 333 126 159 127 66 380 253 85 105 174 126 147 78 255 985 272 209 92 120
Character S t r i n g B u f f e r ( ) ; i n t e x p e
Milliseconds 209 554 213 155 200 78 111 665 906 127 168 146 97 898 704 880 329 228 55 98 202 254 261 299 214
Character c t e d = 1 0 2 4 ; / * C u t o f f t
Milliseconds 95 202 115 142 1366 595 243 1118 759 545 480 692 299 1226 1106 452 665 293 100 276 229 123 149 207 682
Character o a v o i d D o S a t t a c k * / w h i
Milliseconds 118 186 409 256 290 154 74 202 962 569 418 606 456 116 214 403 238 136 566 1168 841 391 257 75 141
Character l e ( e x p e c t e d < s h u t d o w n . l
Milliseconds 170 134 248 425 658 217 242 198 131 199 110 95 506 1005 488 311 132 544 142 189 126 119 252 371 343
Character e n g t h ( ) ) { i f ( r a n d o m = =
Milliseconds 89 148 410 251 93 598 900 540 561 2046 1062 370 32 339 651 597 109 131 67 130 120 475 497 187 208
Character n u l l ) r a n d o m = n e w R a n d o m
Milliseconds 210 94 181 148 624 1103 400 142 100 64 199 77 383 1362 339 255 112 114 222 713 276 45 130 149 165
Character ( S y s t e m . c -c - u -u c u r r e n t T i m e
Milliseconds 778 1031 486 129 316 179 128 235 139 284 501 163 234 593 440 203 148 164 70 138 123 912 427 309 589
Character M i l l i s ( ) ) ; e x p e c t e d + = ( r
Milliseconds 654 342 139 146 116 219 765 486 308 488 234 150 244 239 192 374 424 316 98 600 1542 739 685 761 505
Character a n d o m . n e x t I n t ( ) % 1 0 2 4 ) ;
Milliseconds 124 113 57 167 158 196 181 114 220 202 2190 460 135 664 709 666 1101 406 1505 349 536 288 1261 643 285
Character } w h i l e ( e x p e c t e d > 0 ) {
Milliseconds 1921 569 290 91 171 192 161 788 487 643 201 236 1020 138 208 101 104 408 458 354 2227 1283 408 1337 646
Character i n t c h = - 1 ; t r y { c h = s
Milliseconds 227 78 62 199 221 85 381 1250 243 2760 1770 579 180 225 172 109 294 1029 698 318 86 307 482 213 228
Character t r i -i e a m . r e a d ( ) ; } c a t c h (
Milliseconds 127 175 176 764 383 109 150 350 375 61 153 191 474 573 491 374 656 289 816 164 107 245 59 457 423
Character I O E x c e p t i o n e ) { l o g . w a r n
Milliseconds 1026 276 271 521 630 91 656 160 114 174 228 275 289 600 366 567 593 405 123 100 220 226 122 161 216
Character ( " S t a n d a r d S e r v e r . a w a i t : r
Milliseconds 602 762 810 262 150 89 138 256 191 131 636 353 180 237 106 153 282 343 181 116 566 388 753 399 287
Character e a d : " , e ) ; c h ( -( = - 1 ; }
Milliseconds 73 86 102 312 379 495 450 435 261 654 511 250 303 116 655 430 1307 1099 410 1088 2214 517 213 1042 329
Character i f ( c h < 3 2 ) / * C o n t r o l c
Milliseconds 210 95 281 542 421 89 487 371 316 1968 218 802 465 1067 1074 400 546 488 140 174 157 135 203 254 217
Character h a r a c t e r o r E O F t e r m i n a t e
Milliseconds 79 144 304 134 158 208 121 135 180 164 119 129 755 241 292 258 242 100 167 180 131 206 261 118 105
Character s l o o p b r e a k ; c o m m a n d . a p p
Milliseconds 117 287 246 85 155 189 151 632 363 90 81 273 359 162 277 90 121 148 152 109 141 460 290 144 119
Character e n d ( ( c h a r ) c h ) ; e x p e c t e d -
Milliseconds 385 176 36 600 182 396 79 126 123 775 367 275 79 407 434 404 263 164 222 177 131 261 128 134 857
Character - ; }
Milliseconds 186 307 862 677
WPM Timing
Seconds WPM
4.1 2.93
8.19 23.44
12.29 42
16.38 35.16
20.48 39.85
24.57 39.55
28.67 39.34
32.77 38.45
36.86 36.14
40.96 35.16
45.05 35.16
49.15 34.67
53.24 34.93
57.34 35.16
61.44 35.16
65.53 33.88
69.63 34.64
73.72 34.34
77.82 34.54
81.91 33.84
86.01 33.76
90.11 34.09
94.2 33.63
98.3 33.82
102.39 33.05
106.49 32.45
110.58 31.69
114.68 31.81
118.78 31.52
122.87 30.86
126.97 30.81
131.06 30.03
135.16 30.19
139.25 30.42
143.35 30.47
147.45 30.44
151.54 30.57
155.64 30.84
159.73 30.95
163.83 31.13
167.92 30.73
172.02 30.21
176.12 30.25
180.21 29.96
184.31 29.75
188.4 30.38
192.5 30.98
196.59 31.5
200.69 31.69
204.79 31.76