Bug 15609 - testkjs should made long-running to speed up run-javascriptcore-tests
Summary: testkjs should made long-running to speed up run-javascriptcore-tests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-22 01:28 PDT by Eric Seidel (no email)
Modified: 2007-10-22 01:28 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2007-10-22 01:28:08 PDT
testkjs should made long-running to speed up run-javascriptcore-tests

DumpRenderTree has a "long running" option, where it will stay launched and sit and wait for new data to come in and run it.  testkjs could benefit from such as well.  I expect it would *drastically* reduce how long it takes to run run-javascriptcore-tests (which is currently a ridiculously long time).

testkjs would need to make a new global object for each test, but would want to keep around certain files in memory (the shell files) and just run those before any test it's given.  A simple LRU cache of recently read-from-disk js files would probably do the trick.