WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
148267
Investigate asm.js memory growth perf
https://bugs.webkit.org/show_bug.cgi?id=148267
Summary
Investigate asm.js memory growth perf
Alon Zakai
Reported
2015-08-20 16:59:32 PDT
Created
attachment 259529
[details]
Fannkuch benchmark with memory growth Attached is an example benchmark of fannkuch compiled by emscripten with asm.js memory growth. That means that the typed arrays representing memory (HEAP8, etc.) are modifiable, we replace them when we resize memory. (This uses ArrayBuffer.transfer when present, but does not depend on that.) This is efficient in Firefox and Edge, as part of asm.js validation and the AOT compilation approach. On Chrome it is known to be slow,
https://code.google.com/p/v8/issues/detail?id=3907
Filip asked me to file this issue here, to investigate performance in JavaScriptCore. Note that memory growth is disabled by default in emscripten, so probably not much code out there uses it. If we can see that it's fast across the board, it would be nice to enable it, as it lets people compile their code without deciding ahead of time on the maximum amount of memory.
Attachments
Fannkuch benchmark with memory growth
(284.88 KB, application/javascript)
2015-08-20 16:59 PDT
,
Alon Zakai
no flags
Details
Fannkuch benchmark without memory growth
(282.46 KB, application/javascript)
2015-08-20 17:34 PDT
,
Alon Zakai
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alon Zakai
Comment 1
2015-08-20 17:34:01 PDT
Created
attachment 259537
[details]
Fannkuch benchmark without memory growth For comparison, Fannkuch without memory growth.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug