-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add relative file support to emduk using NODEFS #355
Conversation
Relative paths only are not sufficient to get |
0ee2f36
to
a1ca263
Compare
Mapping virtual |
Relative paths and
These two are enough for performance testing and using |
e9e7666
to
32ac5e0
Compare
I wonder if this would allow the tests to work on Cygwin now. Last time I couldn't get it to run under Cygwin, presumably because the Windows version of Node doesn't like absolute Unix paths such as /tmp. |
I think the better fix for that would be for But I have to say I'm not very excited about extending/maintaining runtests.js - it's not very good and will be replaced anyway by a client-server runner which will support multiple test target platforms (which is something quite important missing right now). |
0a840d4
to
ee961cd
Compare
Results from a
|
Need to sort through the failed cases; looking quickly some of them are at least just V8 recursion limits, e.g.:
|
Here's the performance test from master before merging in longjmp-free RETURN support:
|
A few notes on the performance:
So, the relative slowdown (compared to equivalent native) for bytecode dispatch is larger than for other native code. Not sure yet what causes that, but two possible issues are:
Regarding the switch:
|
Trailing line contains a space and a newline (0x20 0x0a), add a hack runtests option to strip that.
ee961cd
to
68de23f
Compare
Add relative file support to emduk using NODEFS
Relative file support allows command line running e.g.:
without resorting to stdin tricks. This is enough to get a performance/testcase baseline for Duktape-on-Emscripten (executed using Node.js).
Tasks: