{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/test/issues/337","labels_url":"https://api.github.com/repos/dart-lang/test/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/test/issues/337/comments","events_url":"https://api.github.com/repos/dart-lang/test/issues/337/events","html_url":"https://github.com/dart-lang/test/issues/337","id":106082857,"number":337,"title":"Running a directory of tests is slow to start up.","user":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/test/labels/not%20planned","name":"not planned","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-09-11T19:58:23Z","updated_at":"2015-09-11T22:50:09Z","closed_at":"2015-09-11T20:45:24Z","body":"sky_engine's run_tests tool will run all the tests in it's unit/test directory (See https://github.com/domokit/sky_engine/tree/master/sky/unit/test).\r\n\r\nRunning sky's tests can around 45 seconds on a non-SSD before any tests start executing.\r\n\r\nOn an SSD the time before tests are run is about 22 seconds.\r\n\r\nI traced the problem to executable.dart but didn't proceed further."},"comment":{"url":"https://api.github.com/repos/dart-lang/test/issues/comments/139680542","html_url":"https://github.com/dart-lang/test/issues/337#issuecomment-139680542","issue_url":"https://api.github.com/repos/dart-lang/test/issues/337","id":139680542,"user":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T22:50:09Z","updated_at":"2015-09-11T22:50:09Z","body":"@nex3 ' time find -L test | wc -l' takes about 3.3 seconds real time - of course that's not listing them as I only output one line as a result.\r\n\r\nPrinting each line instead takes 221 seconds.\r\n\r\nThis is all from my SSD - though I believe the symlinks are pointing to files on my HDD where my pub cache is.\r\n\r\nSo I guess its a matter of what you do with each file as well as access time.  If it only take 30us to process each of the 700k files you're up to the 21 seconds I see on my SSD.\r\n"}}