3 ms·
Slightly OT, but is it really that difficult to tell the difference between Windows Server 2008R2 and Windows 7? The linked page doesn't seem to be able to tell
by piers 16y ago
Slightly OT, but is it really that difficult to tell the difference between Windows Server 2008R2 and Windows 7? The linked page doesn't seem to be able to tell the difference between the two.
- mathias 16y agoHey, I’m the guy who made the jsPerf website. The product token for Windows Server 2008R2 and Windows 7 is the same (6.1) so there’s technically no way to tell the difference. jsPerf is supposed to show you it could be both, not one of them. Is this bugged?
- piers 16y agoI'm not having a dig at the site. And I didn't know that about the product token. Could you not do something with the user agent or do you get that already?
- jdd 16y agoBenchmark.js (http://benchmarkjs.com http://benchmarkjs.com), which jsPerf uses, does checks the UA string as well as feature tests for various environments. You can check the code out at https://github.com/mathiasbynens/benchmark.js/blob/master/benchmark.js#L1467-1646 https://github.com/mathiasbynens/benchmark.js/blob/master/be.... Here is a MSDN post that examines some of the platform tokens http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
- yahelc 16y agoMuch love to JSPerf. OT, but, is there any way to embed the results dynamically?
- jdd 16y agoThere is, but it's not easily to digest at the moment. You need the Browserscope key + Google's visualization library. You can reference https://github.com/mathiasbynens/benchmark.js/blob/master/plugins/ui.browserscope.js#L218 https://github.com/mathiasbynens/benchmark.js/blob/master/pl...