Lines Matching +full:react +full:- +full:is
1 -- Copyright 2023 The Chromium Authors
2 -- Use of this source code is governed by a BSD-style license that can be
3 -- found in the LICENSE file.
5 -- Annotates a trace with Speedometer 2.1 related information.
6 --
7 -- The scripts below analyse traces with the following tracing options
8 -- enabled:
9 --
10 -- - Chromium:
11 -- "blink.user_timing".
12 --
13 -- NOTE: A regular speedometer run (e.g. from the website) will generate the
14 -- required events. No need to add any extra JS or anything.
15 --
16 -- Noteworthy tables:
17 -- speedometer_mark: List of marks (event slices) emitted by Speedometer.
18 -- These are the points in time Speedometer makes a clock reading to
19 -- compute intervals of time for the final score.
20 -- speedometer_measure_slice: Augmented slices for Speedometer measurements.
21 -- These are the intervals of time Speedometer uses to compute the final
22 -- score.
23 -- speedometer_iteration_slice: Slice that covers one Speedometer iteration
24 -- and has the total_time and score for it. If you average all the scores
25 -- over all iterations you get the final Speedometer score for the run.
27 -- List of marks (event slices) emitted by Speedometer.
28 -- These are the points in time Speedometer makes a clock reading to compute
29 -- intervals of time for the final score.
30 --
31 -- @column slice_id Slice this data refers to.
32 -- @column iteration Speedometer iteration the mark belongs to.
33 -- @column suite_name Suite name
34 -- @column test_name Test name
35 -- @column mark_type Type of mark (start, sync-end, async-end)
41 ('VanillaJS-TodoMVC'),
42 ('Vanilla-ES2015-TodoMVC'),
43 ('Vanilla-ES2015-Babel-Webpack-TodoMVC'),
44 ('React-TodoMVC'),
45 ('React-Redux-TodoMVC'),
46 ('EmberJS-TodoMVC'),
47 ('EmberJS-Debug-TodoMVC'),
48 ('BackboneJS-TodoMVC'),
49 ('AngularJS-TodoMVC'),
50 ('Angular2-TypeScript-TodoMVC'),
51 ('VueJS-TodoMVC'),
52 ('jQuery-TodoMVC'),
53 ('Preact-TodoMVC'),
54 ('Inferno-TodoMVC'),
55 ('Elm-TodoMVC'),
56 ('Flight-TodoMVC')
62 -- This seems to be an issue with Speedometer 2.1. All tests delete all items,
63 -- but for some reason the test names do not match for all suites.
70 ('sync-end'),
71 ('async-end')
73 -- Make sure we only look at slices with names we expect.
76 s.suite_name || '.' || t.test_name || '-' || m.mark_type AS name,
96 -- Augmented slices for Speedometer measurements.
97 -- These are the intervals of time Speedometer uses to compute the final score.
98 -- There are two intervals that are measured for every test: sync and async
99 -- sync is the time between the start and sync-end marks, async is the time
100 -- between the sync-end and async-end marks.
102 -- Speedometer iteration the mark belongs to.
104 -- Suite name
106 -- Test name
108 -- Type of the measure (sync or async)
110 -- Start timestamp of the measure
112 -- Duration of the measure
117 -- Get the 3 test timestamps (start, sync-end, async-end) in one row. Using a
118 -- the LAG window function and partitioning by test. 2 out of the 3 rows
119 -- generated per test will have some NULL ts values.
142 -- This server 2 purposes: make sure we have all the marks (think truncated
143 -- trace), and remove the NULL ts values due to the LAG window function.
152 async_end_ts - sync_end_ts AS dur
161 sync_end_ts - start_ts AS dur
164 -- Slice that covers one Speedometer iteration.
165 -- This slice is actually estimated as a default Speedometer run will not emit
166 -- marks to cover this interval. The metrics associated are the same ones
167 -- Speedometer would output, but note we use ns precision (Speedometer uses
168 -- ~100us) so the actual values might differ a bit. Also note Speedometer
169 -- returns the values in ms these here and in ns.
171 -- Speedometer iteration.
173 -- Start timestamp of the iteration
175 -- Duration of the iteration
177 -- Total duration of the measures in this iteration
179 -- Average suite duration for this iteration.
181 -- Geometric mean of the suite durations for this iteration.
183 …-- Speedometer score for this iteration (The total score for a run in the average of all iteration…
189 MAX(end) - MIN(start) AS dur,
192 -- Compute geometric mean using LN instead of multiplication to prevent
193 -- overflows