Closed
Bug 1269946
Opened 9 years ago
Closed 8 years ago
[Perf][google docs] 9.32%(1589 ms) slower than Chrome when opening 50 page mix content and do the text formatting on certain sentences
Categories
(Core :: General, defect)
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)
(deleted),
text/plain
|
Details |
# Test Case
STR
1. Launch the browser with blank page
2. input the google doc url with 50 page content ( 16 image, 16 table, others are txt contain with keyword)
3. Find the keyword and change them to bold
4. 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 | 18633.3333 ms
Chrome | 17044.4444 ms
Blocks: Meta-Hasal-GDoc
Updated•9 years ago
|
Product: Firefox → Core
Updated•9 years ago
|
Version: unspecified → 45 Branch
Comment 1•9 years ago
|
||
# Profiling Data:
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35
# Performance Timing:
http://goo.gl/dP0HEk
{
"navigationStart": 1463472473730,
"unloadEventStart": 0,
"unloadEventEnd": 0,
"redirectStart": 0,
"redirectEnd": 0,
"fetchStart": 1463472473735,
"domainLookupStart": 1463472473735,
"domainLookupEnd": 1463472473735,
"connectStart": 1463472473735,
"connectEnd": 1463472473735,
"requestStart": 1463472473737,
"responseStart": 1463472474422,
"responseEnd": 1463472474422,
"domLoading": 1463472474425,
"domInteractive": 1463472475664,
"domContentLoadedEventStart": 1463472476682,
"domContentLoadedEventEnd": 1463472476683,
"domComplete": 1463472480155,
"loadEventStart": 1463472480155,
"loadEventEnd": 1463472480162
}
# Original Test Script:
https://github.com/Mozilla-TWQA/Hasal/blob/master/tests/test_firefox_gdoc_update_replace_50.sikuli/test_firefox_gdoc_update_replace_50.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()
ff.profilerMarker_3()
type(Key.END, Key.CTRL)
wait(0.3)
type(Key.UP, Key.SHIFT)
wait(0.3)
type(Key.UP, Key.SHIFT)
wait(0.3)
type(Key.UP, Key.SHIFT)
wait(0.3)
type(Key.UP, Key.SHIFT)
ff.profilerMarker_4()
gd.bold()
ff.profilerMarker_5()
com.page_end()
ff.profilerMarker_6()
sleep(2)
gd.deFoucsContentWindow()
Comment 2•9 years ago
|
||
Comment 3•9 years ago
|
||
# Try to identify the time between "domLoading" and "loadEventEnd"
Perf Timing:
domLoading to loadEventEnd: 6432 - 695 = 5737 ms
AddOn Start to End mark: 40026 - 34369 = 5657 ms
Profiler:
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A 34269,%22end%22%3A40125%7D%5D
From Gecko Profiling data, the Range [32487, 36958]:
5795 100.0% Startup::XRE_Main
1651 28.5% ├─ nsInputStreamPump::OnInputStreamReady
1495 25.8% │ ├─ nsInputStreamPump::OnStateStop
109 1.9% │ ├─ nsInputStreamPump::OnStateStart
47 0.8% │ └─ nsInputStreamPump::OnStateTransfer
│
1474 25.4% ├─ Timer::Fire
1452 25.1% │ ├─ js::RunScript
│ └─ ...so on
│
936 27.3% ├─ nsHtml5TreeOpExecutor::RunFlushLoop
757 25.2% │ ├─ nsJSUtils::EvaluateString
│ └─ ...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"
Comment 4•9 years ago
|
||
# Update the profiler to identify the time between "domLoading" and "loadEventEnd"
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A34269,%22end%22%3A40125%7D%5D
Comment 5•9 years ago
|
||
# Try to identify the time for the text selection
Perf Timing:
Perf Mark #3 to Perf Mark #4: 49621 - 48019 = 1602 ms
Profiler:
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A48009,%22end%22%3A49631%7D%5D
From Gecko Profiling data, the Range [66426, 74097]:
1622 100.0% Startup::XRE_Main
856 52.8% ├─ __poll/bild/eglibc-3GlaMS/eglibc-2.19/io/..sysdeps/unix/syscall-template.S:81
│ (/lib/x86_64-linux-gnu/libc.so.6
309 19.1% ├─ nsRefreshDriver::Tick
209 12.9% ├─ EventDispatcher::DispatchEvent
└─ ...so on
Comment 6•9 years ago
|
||
# Try to identify for boldfacing the selected text
Perf Timing:
Perf Mark #4 to Perf Mark #5: 49827 - 49621 = 206 ms
Profiler:
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A49611,%22end%22%3A49837%7D%5D
From Gecko Profiling data, the Range [49611, 49837]:
226 100.0% Startup::XRE_Main
136 60.2% ├─ EventDispatcher::DispatchEvent
135 59.7% │ ├─ nsInputStreamPump::OnStateStop
│ └─ ...so on
│
73 32.9% ├─ __poll/bild/eglibc-3GlaMS/eglibc-2.19/io/..sysdeps/unix/syscall-template.S:81
└─ ...so on
Comment 7•9 years ago
|
||
# Correct the time for boldfacing the selected text
Perf Timing:
Perf Mark #4 to Perf Mark #5: 49827 - 49621 = 206 ms
Profiler:
https://cleopatra.io/#report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%22RangeSampleFilter%22,%22start%22%3A49611,%22end%22%3A49837%7D%5D
From Gecko Profiling data, the Range [49611, 49837]:
226 100.0% Startup::XRE_Main
136 60.2% ├─ nsViewManager::DispatchEvent
135 59.7% │ ├─ EventDispatcher::Dispatch
│ └─ ...so on
│
73 32.9% ├─ __poll/bild/eglibc-3GlaMS/eglibc-2.19/io/..sysdeps/unix/syscall-template.S:81
└─ ...so on
In reply to Cynthia Tang [:cynthiatang] from comment #6)
> # Try to identify for boldfacing the selected text
>
> Perf Timing:
> Perf Mark #4 to Perf Mark #5: 49827 - 49621 = 206 ms
>
> Profiler:
> https://cleopatra.io/
> #report=5bfbccb9345e63fa075b8d14630a1a450f707c35&filter=%5B%7B%22type%22%3A%2
> 2RangeSampleFilter%22,%22start%22%3A49611,%22end%22%3A49837%7D%5D
>
> From Gecko Profiling data, the Range [49611, 49837]:
> 226 100.0% Startup::XRE_Main
> 136 60.2% ├─ EventDispatcher::DispatchEvent
> 135 59.7% │ ├─ nsInputStreamPump::OnStateStop
> │ └─ ...so on
> │
> 73 32.9% ├─
> __poll/bild/eglibc-3GlaMS/eglibc-2.19/io/..sysdeps/unix/syscall-template.S:
> 81
> └─ ...so on
Updated•8 years ago
|
Whiteboard: [platform-rel-Google][platform-rel-GoogleDocs]
Updated•8 years ago
|
platform-rel: --- → ?
Comment 8•8 years ago
|
||
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.
Description
•