Giter Site home page Giter Site logo

Comments (3)

tobli avatar tobli commented on May 27, 2024

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.

soulgalore avatar soulgalore commented on May 27, 2024

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.

tobli avatar tobli commented on May 27, 2024

This issue is no longer relevant.

from browsertime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.