EDITOR: Oops ... read the question too fast. My answer does not really apply.
Depending on the level of accuracy you want.
If you do not want something ultra-precise, it may be possible with a little work.
The way I see it; one of your biggest problems will be to consider different JS engines in different browsers and measure everything according to that particular browser and engine base.
For example, try running any SunSpider test in IE 5.5 and then in Google Chrome on the same machine ... an amazing difference. You must take this into account. http://www.webkit.org/perf/sunspider/sunspider.html
Ideally, you will also need to compare scores between different browsers (i.e. this test runs in x ms on machine A in IE 6 and in y ms on the same machine in IE 8, so I can match IE 6 points to IE points 8 using the average factor). It may be difficult to get enough data to work efficiently.
Steve source share