Add TypedArray polyfill or shim for IE9, IE8 and downlevel Android devices.
GoogleCodeExporter opened this issue · 7 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
---
1. Load octane URL in IE9.0 (current version of IE at time of writing)
http://octane-benchmark.googlecode.com/svn/latest/index.html
2. Click "Start Octane"
3. Nothing happens
What is the expected output? What do you see instead?
---
Expected is suite should run, using commonly used backwards compatibility shims
used by web developers for their own applications.
What is seen is nothing happens
What version of the product are you using? On what operating system?
---
IE9.0 fully patched on Windows 7 fully patched.
Please provide any additional information below.
---
Developers write apps today using typed arrays targetting IE9, IE8 and
downlevel Android clients. The apps run JUST FINE.
Perhaps they are slow, but there is no reliable way to determine this without a
benchmark which also runs on those platforms.
Adding a polyfill shim for TypedArrays will turn this into a realistic
benchmark for those scenarios, and will mirror good development practice
actually in use at this time.
Original issue reported on code.google.com by b...@liddicott.com
on 30 Aug 2012 at 2:10
GoogleCodeExporter commented
A commonly used shim is here:
https://bitbucket.org/lindenlab/llsd/src/7d2646cd3f9b/js/typedarray.js
Original comment by b...@liddicott.com
on 30 Aug 2012 at 2:11
GoogleCodeExporter commented
Hello,
I cannot reproduce the behavior you describe. Octane runs fine on Win7 (fully
patched) on IE9.0.8112.16421
Could you give us more information, such as IE version? Could you also open the
debug console (F12) and see if you get error messages there? Btw, make sure you
don't have any extensions or plugin and nothing else is running in the
background.
Regarding the TypedArrays suggestion, we will evaluate. The goal is to measure
specifically TypedArray performances since there's very little out there that
does it, so falling back to standard types is not an option.
Original comment by octane.t...@gmail.com
on 30 Aug 2012 at 3:37
GoogleCodeExporter commented
OK well it seems to have been updated since I filed the bug since the behaviour
has changed (now reports "Typed Arrays partly or not supported - some tests
will be skipped"), but still not working for me. Have you got it in your
"Trusted Sites" list perhaps?
IE Version: 9.0.8112.16421
Update versions: 9.0.9 (KB2722913)
F12 gives this output - I suspect the last line is the killer:
SCRIPT445: Object doesn't support this action
base.js, line 85 character 1
SCRIPT438: Object doesn't support property or method 'defineProperty'
deltablue.js, line 49 character 1
SCRIPT1003: Expected ':'
pdfjs.js, line 493 character 9
SCRIPT5009: 'Float64Array' is undefined
mandreel.js, line 159 character 1
SCRIPT438: Object doesn't support property or method 'defineProperty'
box2d.js, line 71 character 453
SCRIPT438: Object doesn't support property or method 'CountBenchmarks'
index.html, line 65 character 3
LOG: Typed Arrays not supported
SCRIPT438: Object doesn't support property or method 'RunSuites'
index.html, line 116 character 5
Original comment by b...@liddicott.com
on 30 Aug 2012 at 4:04
GoogleCodeExporter commented
If I use the debugger to skip the first error so base.js loads, it kind-of
runs, but generates a lot of errors due to 'defineProperty'. Box2dWeb, mandreel
and pdfjs fail without reporting any error.
Richards 59.8
Core language features
Deltablue Error
Core language features
Crypto 84.3
Bit & Math operations
Raytrace 162
Core language features
EarleyBoyer 156
Memory & GC
Regexp 200
Strings & arrays
Splay 400
Memory & GC
NavierStokes 114
Strings & arrays
pdf.js ...
Strings & arrays
Mandreel ...
Virtual machine
GB Emulator Unsupported
Virtual machine
CodeLoad 5012
Loading & Parsing
Box2DWeb ...
Bit & Math operations
Original comment by b...@liddicott.com
on 30 Aug 2012 at 4:18
GoogleCodeExporter commented
It seems the problem is related to IE9 Document Mode. If the mode is =IE9 then
all works and you should not see those errors. If - as it happens right now -
the mode is IE7, you get errors and the benchmark doesn't run.
We are investigating on this, it doesn't seem just a matter of adding tags to
the html (which we added today with mixed results).
Original comment by octane.t...@gmail.com
on 12 Sep 2012 at 1:34
- Changed state: Accepted
GoogleCodeExporter commented
Anyhow, please do not provide a full shim for gb-emu if you do provide a
fallback for typed arrays. Legacy arrays should work for gb-emu, as it was
designed for legacy js array support in addition to typed arrays (Math logic
should hold true for both kinds, although Opera 11.6X on mac shows opera has
typed array math bugs).
Original comment by grantgal...@gmail.com
on 21 Sep 2012 at 3:00
GoogleCodeExporter commented
Original comment by octane.t...@gmail.com
on 18 Nov 2013 at 3:22
- Changed state: WontFix