Closed Bug 1269689 Opened 8 years ago Closed 8 years ago

[Perf][google docs] 23.93%(1867ms) slower than Chrome when opening 1 page image content

Categories

(Core :: General, defect)

45 Branch
x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WONTFIX
Tracking Status
platform-rel --- ?

People

(Reporter: sho, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [platform-rel-Google][platform-rel-GoogleDocs])

User Story

You can find all test scripts on github link:
https://github.com/mozilla-twqa/hasal

And you can also find the running script name in comments
for example: 
test scripts: test_chrome_gdoc_create_txt_1
then you can specify the test script name on suite.txt and run it

Attachments

(1 file)

Test Case
STR
1. Launch the browser with blank page
2. input the google doc url with 1 image content
3. close the browser

# Hardware
OS: Ubuntu 14.04 LTS 64-bit
CPU: i7-3770 3.4GMhz
Memory: 16GB Ram
Hard Drive: 1TB SATA HDD
Graphics: GK107 [GeForce GT 640]/ GF108 [GeForce GT 440/630]

# Browsers
Firefox version: 45.0.2
Chrome version: 50.0.2661.75

# Result
Browser | Run time (median value) 
Firefox | 9666.6667 ms
Chrome  | 7800 ms
Product: Firefox → Core
Version: unspecified → 45 Branch
User Story: (updated)
# Test Case
 1. Launch the browser with blank page
 2. Input the google doc url with 1 pages image content
    https://goo.gl/ZGBNym
 3. Close the browser
 
# Profiling Data:
https://cleopatra.io/#report=5051a31c6200c04f33d15edcd19a2c5e3d5219c1

# Performance Timing:
http://goo.gl/fl69o0
{ 
  "navigationStart": 1463041513000, 
  "unloadEventStart": 0, 
  "unloadEventEnd": 0, 
  "redirectStart": 0, 
  "redirectEnd": 0, 
  "fetchStart": 1463041513004, 
  "domainLookupStart": 1463041513004, 
  "domainLookupEnd": 1463041513004, 
  "connectStart": 1463041513004, 
  "connectEnd": 1463041513004, 
  "requestStart": 1463041513007, 
  "responseStart": 1463041513392, 
  "responseEnd": 1463041513392, 
  "domLoading": 1463041513396, 
  "domInteractive": 1463041514069, 
  "domContentLoadedEventStart": 1463041514933, 
  "domContentLoadedEventEnd": 1463041514934, 
  "domComplete": 1463041517264, 
  "loadEventStart": 1463041517264, 
  "loadEventEnd": 1463041517270
}

# Test Script:
https://github.com/Mozilla-TWQA/Hasal/blob/master/tests/test_firefox_gdoc_read_basic_image_1.sikuli/test_firefox_gdoc_read_basic_image_1.py
  sys.path.append(sys.argv[2])
  import browser
  import common
  import gdoc

  com = common.General()
  ff = browser.Firefox()
  gd = gdoc.gDoc()

  ff.clickBar()
  ff.enterLink(sys.argv[3])
  sleep(5)
  gd.wait_for_loaded()

  gd.deFoucsContentWindow()
QA Contact: ctang
# Try to identify the time between "navigationStart" and "loadEventEnd"

Perf Timing:
navigationStart to loadEventEnd = 4270 ms
domLoading to loadEventEnd: 4270 - 396 = 3874 ms
AddOn Start to End mark: 36857 - 33068 = 3789 ms

Profiler: 
https://cleopatra.io/#report=5051a31c6200c04f33d15edcd19a2c5e3d5219c1&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A32487,%22end%22%3A36957%7D%5D

From Gecko Profiling data, the Range [32487, 36958]:
 4470  100.0%  Startup::XRE_Main
 1541   34.5%  ├─ nsInputStreamPump::OnInputStreamReady
 1374   30.7%  │  ├─ nsInputStreamPump::OnStateStop  
  120    2.7%  │  ├─ nsInputStreamPump::OnStateStart
               │  └─ ...so on
               │
  719   16.1%  ├─ js::RunScrip
  636   14.2%  │  ├─ js::RunScript
               │  └─ ...so on
               │
  651   17.0%  ├─ nsHtml5TreeOpExecutor::RunFlushLoop
  490   13.9%  │  ├─ nsJSUtils::EvaluateString 
  136    3.0%  │  ├─ EventDispatcher::Dispatch
               │  └─ ...so on
               │
  548   12.3%  ├─ nsRefreshDriver::Tick
  254    5.7%  │  ├─ PressShell::Paint
  176    3.9%  │  ├─ PressShell::Flush (Flush_Style)
               │  └─ ...so on
               └─ ...so on

Note 
 1. Filed Bug 1267971 for tracking "nsInputStreamPump::OnStateStop"
 2. Filed Bug 1271914 for tracking "js::RunScript"
 3. Filed Bug 1270351 for tracking "nsJSUtils::EvaluateString"
 4. Filed Bug 1270427 for tracking "nsRefreshDriver::Tick"
Whiteboard: [platform-rel-Google][platform-rel-GoogleDocs]
platform-rel: --- → ?
Mark as minor case, and marked wontfix in this iteration. Revisit here if necessary.

This bug fixing iteration will focus on critical bug 1264535, bug 1269666, bug 1269684, bug 1269690, bug 1269695, bug 1269698.
Severity: normal → minor
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: