Comments (3)
There are multiple issues with marks and measures. One is that the navigation timing spec uses absolute times, expressed as milliseconds since epoch, whereas user timing uses milliseconds since navigationStart using a milliseconds accurate to a thousandth of a millisecond. Looks like this difference will be addressed in http://w3c-test.org/webperf/specs/NavigationTiming2/. I suggest standardizing on the precision from the user timing spec, and converting all times to be relative to epoch.
A second issue is that it may be useful to get statistics of user timing marks. At the moment however they're not in statistics, since only intervals (measures) are included there. Given the proposed resolution to the first issues, one approach would be to synthesize measures for such user timing marks, using navigationStart as the start time, and the end of the mark as the end. I.e. {duration: 0, startTime: 226.26299997791648, entryType: "mark", name: "mark_above_the_fold"} would also generate a synthesized measure {duration: 216.26299997791648, startTime: 10.0000000, entryType: "measure", name: "mark_above_the_fold"}.
Would that make sense?
from browsertime.
Well, that sounds good, maybe could be a little tricky? However, remember that I've already added marks in statistics (all the ones except the ones in Navigation Timing API), think we discussed it? :) No problem removing them though, for me it is important to get them as stats, because I think that is a really killer part of the code.
from browsertime.
This issue is no longer relevant.
from browsertime.
Related Issues (20)
- Chromedriver 115 do not find Chrome HOT 1
- StopWatch and custom metrics associated with wrong URL-or-alias HOT 3
- Checks invoking extraWait() ignore --pageCompleteCheckStartWait, always take default 5000ms minimum HOT 7
- Does browsertime support DoT or DoH? HOT 1
- Use node directly to get test indicators HOT 8
- Hope to support the version of commonjs specification HOT 1
- How to collect fetch/xhr requests in the network HOT 2
- Selenium console.log message when you run tests with Safari HOT 1
- Chrome 119+ fails to start HOT 1
- Implement support for soft navigations in Chrome(ium)
- Support SPA navigations that do not do any requests
- linux failed to start chorme three times HOT 2
- When testing multiple URLs, the cache of previous URLs will not be obtained and will not interfere with each other. HOT 11
- Firefox 121 on Mac OS (14.2) fails to start HOT 2
- When runMultiple is running, will the script execution time in preScript and postScript be counted in the recorded time? HOT 2
- Add types to https://github.com/DefinitelyTyped/DefinitelyTyped
- Firefox on Android always runs power usage tests HOT 2
- Implement Long Animation Frame HOT 1
- Be able to set custom paths to Safari or Safari Technology Preview (i.e. something like safari.binaryPath) HOT 4
- Safari Technology Preview not being recognized as a browser? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browsertime.