{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/2094","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/2094/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/2094/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/2094/events","html_url":"https://github.com/aspnet/Mvc/issues/2094","id":59257922,"number":2094,"title":"Major performance difference between Windows and Linux","user":{"login":"Tragetaschen","id":1947968,"avatar_url":"https://avatars.githubusercontent.com/u/1947968?v=3","gravatar_id":"","url":"https://api.github.com/users/Tragetaschen","html_url":"https://github.com/Tragetaschen","followers_url":"https://api.github.com/users/Tragetaschen/followers","following_url":"https://api.github.com/users/Tragetaschen/following{/other_user}","gists_url":"https://api.github.com/users/Tragetaschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tragetaschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tragetaschen/subscriptions","organizations_url":"https://api.github.com/users/Tragetaschen/orgs","repos_url":"https://api.github.com/users/Tragetaschen/repos","events_url":"https://api.github.com/users/Tragetaschen/events{/privacy}","received_events_url":"https://api.github.com/users/Tragetaschen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-27T16:22:01Z","updated_at":"2015-02-27T17:00:35Z","closed_at":null,"body":"There is a major performance difference using the same binaries between Windows and Mono. I have bundled my beta3-based application and run the application with the `*.cmd` and `*.sh` respectively.\r\n\r\nOn Windows, the first request for Home/Index takes approximately 1000ms, every subsequent one is in the 10-20ms range. On Linux, the first request takes about 25000ms (really, that's 25s) and every subsequent request still 3500ms. According to F12 tools the time is spent waiting for the response.\r\n\r\nI can see this difference with both `Kestrel` and `Nowin.vNext`, so I would rule out the HTTP server component. Also, I don't see any notable difference in serving static content files which both systems handle in the two-digit-millisecond range.\r\n\r\nThe Windows system is a Core i7 Surface Pro 3.\r\nThe Linux is an embedded ARMv7 with 792 MHz.\r\n\r\nI would expect a difference, but it's several orders of magnitude too large to result from the slower system speed.\r\n\r\nAny advice where and how to start looking?"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/76429086","html_url":"https://github.com/aspnet/Mvc/issues/2094#issuecomment-76429086","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/2094","id":76429086,"user":{"login":"Tragetaschen","id":1947968,"avatar_url":"https://avatars.githubusercontent.com/u/1947968?v=3","gravatar_id":"","url":"https://api.github.com/users/Tragetaschen","html_url":"https://github.com/Tragetaschen","followers_url":"https://api.github.com/users/Tragetaschen/followers","following_url":"https://api.github.com/users/Tragetaschen/following{/other_user}","gists_url":"https://api.github.com/users/Tragetaschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tragetaschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tragetaschen/subscriptions","organizations_url":"https://api.github.com/users/Tragetaschen/orgs","repos_url":"https://api.github.com/users/Tragetaschen/repos","events_url":"https://api.github.com/users/Tragetaschen/events{/privacy}","received_events_url":"https://api.github.com/users/Tragetaschen/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T17:00:35Z","updated_at":"2015-02-27T17:00:35Z","body":"Without precompilation, without `_ViewStart.cshtml` I get 6000/15000 for the first request and fast as above for subsequent requests.\r\n\r\nSo I can say:\r\n- The precompilation done on Windows during `bundle` is not picked up on Linux.\r\n- An existing `_ViewStart.cshtml` file seems to invalidate the Razor compilation result on Linux for every request."}}