{"action":"created","issue":{"url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/529","repository_url":"https://api.github.com/repos/lightbody/browsermob-proxy","labels_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/529/comments","events_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/529/events","html_url":"https://github.com/lightbody/browsermob-proxy/issues/529","id":171235707,"number":529,"title":"HAR file results slower when using proxy compared to using selenium only","user":{"login":"binyata","id":7390105,"avatar_url":"https://avatars.githubusercontent.com/u/7390105?v=3","gravatar_id":"","url":"https://api.github.com/users/binyata","html_url":"https://github.com/binyata","followers_url":"https://api.github.com/users/binyata/followers","following_url":"https://api.github.com/users/binyata/following{/other_user}","gists_url":"https://api.github.com/users/binyata/gists{/gist_id}","starred_url":"https://api.github.com/users/binyata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binyata/subscriptions","organizations_url":"https://api.github.com/users/binyata/orgs","repos_url":"https://api.github.com/users/binyata/repos","events_url":"https://api.github.com/users/binyata/events{/privacy}","received_events_url":"https://api.github.com/users/binyata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-15T18:52:50Z","updated_at":"2016-09-04T13:20:50Z","closed_at":null,"body":"I am still new to using browsermob with selenium, but I am trying to understand what I could be missing...\r\n\r\nThe problem that I am facing is that when I check my HAR file results, manually, it takes me an average of 2 seconds or less to load up google.com, but if I add the browsermob proxy to the selenium chrome options, to run chromedriver, it takes me around 8+ seconds to load up google chrome.\r\n\r\nIs there something I need to check, or is this a legitimate bug?\r\n\r\n\r\n**Code:**\r\n\r\nserver = Server(\"browsermob-proxy-2.1.2/bin/browsermob-proxy\")\r\nserver.start()\r\nproxy = server.create_proxy()\r\nprint proxy.port\r\n\r\nchrome_options = webdriver.ChromeOptions()\r\nchrome_options.add_argument(\"--proxy-server={0}\".format(proxy.proxy))\r\nchrome_options.add_argument(\"--disable-component-extensions-with-background-pages\")\r\nbrowser = webdriver.Chrome(chrome_options = chrome_options)\r\n\r\nproxy.new_har(\"google\")\r\nbrowser.get(\"https://google.com\")\r\ntest1 = proxy.wait_for_traffic_to_stop(60, 120)\r\nprint test1\r\n\r\nif test1 == 200:\r\n\r\n\tharinfo = proxy.har # returns a HAR JSON blob\r\n\tf = open('googletext.har', 'w')\r\n\tf.write(json.dumps(harinfo))\r\n\tf.close() \r\n\tserver.stop()\r\n\tbrowser.quit()\r\n\twith open('googletext.har', 'r') as f:\r\n\t\thar_page = HarPage('google', har_data=json.loads(f.read()))\r\n\t\tprint har_page.get_load_time(request_type=None, content_type=None, status_code=None, async=True)"},"comment":{"url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/comments/244603190","html_url":"https://github.com/lightbody/browsermob-proxy/issues/529#issuecomment-244603190","issue_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/529","id":244603190,"user":{"login":"gitgrimbo","id":1020541,"avatar_url":"https://avatars.githubusercontent.com/u/1020541?v=3","gravatar_id":"","url":"https://api.github.com/users/gitgrimbo","html_url":"https://github.com/gitgrimbo","followers_url":"https://api.github.com/users/gitgrimbo/followers","following_url":"https://api.github.com/users/gitgrimbo/following{/other_user}","gists_url":"https://api.github.com/users/gitgrimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/gitgrimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitgrimbo/subscriptions","organizations_url":"https://api.github.com/users/gitgrimbo/orgs","repos_url":"https://api.github.com/users/gitgrimbo/repos","events_url":"https://api.github.com/users/gitgrimbo/events{/privacy}","received_events_url":"https://api.github.com/users/gitgrimbo/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T13:20:50Z","updated_at":"2016-09-04T13:20:50Z","body":"Could you provide a HAR for both scenarios so that they can be compared on a request-by-request basis?\r\n\r\nI ask because there is often a difference between the [`page.startedDateTime`](http://www.softwareishard.com/blog/har-12-spec/#pages) and the [first `entry.startedDateTime`](http://www.softwareishard.com/blog/har-12-spec/#entries) for that page.  This difference is due to the time difference between asking BMP to create a new page for the HAR, and the first request coming through BMP after a call to `driver.get(url)`, for example."}}
{"actor":{"display_login":"gitgrimbo"}}