this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #5 from SukkaW/parallel-job

Paralleling jobs

authored by

Tomás Arias and committed by
GitHub
f0f050c0 fcdd2db0

+6 -3
+6 -3
cli.js
··· 241 241 } 242 242 243 243 async function speedTest() { 244 - const serverLocationData = await fetchServerLocationData(); 245 - const { ip, loc, colo } = await fetchCfCdnCgiTrace(); 244 + const [ping, serverLocationData, { ip, loc, colo }] = await Promise.all([ 245 + measureLatency(), 246 + fetchServerLocationData(), 247 + fetchCfCdnCgiTrace(), 248 + ]); 249 + 246 250 const city = serverLocationData[colo]; 247 251 logInfo('Server location', `${city} (${colo})`); 248 252 logInfo('Your IP', `${ip} (${loc})`); 249 253 250 - const ping = await measureLatency(); 251 254 logLatency(ping); 252 255 253 256 const testDown1 = await measureDownload(101000, 10);