Even so, browser games as-is are bottlenecked by render performance, not language performance; both platforms are capable of running Quake(1 or 2), but JS holds the advantage as far as running it at reasonable resolutions and framerates, while the Flash implementations are hobbled by software rendering.
Even that bottleneck is going away; see: http://en.wikipedia.org/wiki/WebGL
Not quite powerful enough to run, e.g., Doom 3 or something.. but headway is being made.
If you actually try to use some of it's nice functional features, as well, you can forget about performance. Maybe you think engines can solve these things, but I doubt it will ever compare to any language built from the ground up to have reasonable performance.