{"action":"created","issue":{"url":"https://api.github.com/repos/iojs/io.js/issues/1631","labels_url":"https://api.github.com/repos/iojs/io.js/issues/1631/labels{/name}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/1631/comments","events_url":"https://api.github.com/repos/iojs/io.js/issues/1631/events","html_url":"https://github.com/iojs/io.js/issues/1631","id":73432900,"number":1631,"title":"Slow `vm.runInNewContext()`","user":{"login":"indutny","id":238531,"avatar_url":"https://avatars.githubusercontent.com/u/238531?v=3","gravatar_id":"","url":"https://api.github.com/users/indutny","html_url":"https://github.com/indutny","followers_url":"https://api.github.com/users/indutny/followers","following_url":"https://api.github.com/users/indutny/following{/other_user}","gists_url":"https://api.github.com/users/indutny/gists{/gist_id}","starred_url":"https://api.github.com/users/indutny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indutny/subscriptions","organizations_url":"https://api.github.com/users/indutny/orgs","repos_url":"https://api.github.com/users/indutny/repos","events_url":"https://api.github.com/users/indutny/events{/privacy}","received_events_url":"https://api.github.com/users/indutny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iojs/io.js/labels/vm","name":"vm","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-05T21:12:56Z","updated_at":"2015-05-05T21:45:40Z","closed_at":null,"body":"```bash\r\n$ ~/.node/0.10.36/bin/node -e \"console.time();require('vm').runInNewContext('123');console.timeEnd();\"\r\nundefined: 1ms\r\n$ iojs -e \"console.time();require('vm').runInNewContext('123');console.timeEnd();\"\r\nundefined: 16ms\r\n```\r\n\r\ncc @domenic"},"comment":{"url":"https://api.github.com/repos/iojs/io.js/issues/comments/99232872","html_url":"https://github.com/iojs/io.js/issues/1631#issuecomment-99232872","issue_url":"https://api.github.com/repos/iojs/io.js/issues/1631","id":99232872,"user":{"login":"trevnorris","id":289174,"avatar_url":"https://avatars.githubusercontent.com/u/289174?v=3","gravatar_id":"","url":"https://api.github.com/users/trevnorris","html_url":"https://github.com/trevnorris","followers_url":"https://api.github.com/users/trevnorris/followers","following_url":"https://api.github.com/users/trevnorris/following{/other_user}","gists_url":"https://api.github.com/users/trevnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/trevnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevnorris/subscriptions","organizations_url":"https://api.github.com/users/trevnorris/orgs","repos_url":"https://api.github.com/users/trevnorris/repos","events_url":"https://api.github.com/users/trevnorris/events{/privacy}","received_events_url":"https://api.github.com/users/trevnorris/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T21:45:40Z","updated_at":"2015-05-05T21:45:40Z","body":"@domenic How is an additional 15**ms** acceptable? That's a cray amount of time to setup and tear down. It's not creating a new process, or even a new thread. Crap, I can bring my entire process up and down in a measly 60ms:\r\n```\r\n$ /usr/bin/time ./iojs -e ''\r\n0.06user 0.00system 0:00.06elapsed 96%CPU\r\n```"}}