CW6 -- Timing* Open this page and click on the buttons several times
https://maeyler.github.io/BLM305/exam/Timing.htmlThis shows clearly that the first method is about x40 faster
* Using th
at page and the same data, do a timing study for
Array vs Map1. read
all Student id's into Array
a using fetch().then() 2. make a Map from id into Student
map.set(std.id, std)3. search 10.000 Student id's in both data separately
Start with a 9-digit number such as 215170000 <-- select randomly
Use an indexed for loop with 10.000 numbers
Test: a.includes(id) and map.has(id)
4. report
the total number found and timing results (in msec)
The total number must be the same for both data
* Put your work in your repo and add a link to it on the home page
* Send me a screen shot
On Mon, Nov 12, 2018 at 5:43
Time measurement:
Styles & CSS:
Animation:
_Akif_Eyler_