shama/gaze — pull request #79 by Contra (2014-02-20 08:41:32+00:00)
Title: add startup benchmarks

This measures the time it takes for gaze to become ready. This also measures how long gaze blocks the main thread, but I have left that number out of the output because it is usually within 1-2ms of the ready time.

Results:

```
numFiles startTime
0 117
100 320
200 901
300 1898
400 3431
500 5635
600 8425
700 11472
800 15203
900 19802
1000 25870
1100 30020
1200 35856
1300 42044
1400 50612
1500 59471
1600 68263
1700 78745
1800 91209
1900 104107
2000 118597
```

So the growth graph looks like this

![growth](https://i.cloudup.com/pwRrspOh0n-2000x2000.png)

Something is definitely off here and needs fixing. Starting a watch on 2000 files blocks the main thread for almost 2 minutes.