File: index.html

package info (click to toggle)
node-react 18.2.0%2Bdfsg%2B~cs87.31.26-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 30,356 kB
  • sloc: javascript: 361,793; cpp: 1,326; sh: 52; makefile: 46
file content (37 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
  <head>
    <title>React Hacker News Benchmark</title>
    <link rel="stylesheet" type="text/css" href="style.css" />
  </head>
  <body>
    <div id="app"></div>
    <script>
      performance.mark('Load React');
      performance.mark('Load React+ReactDOM');
    </script>
    <script src="react.production.min.js"></script>
    <script>
      performance.measure('Load React', 'Load React');
    </script>
    <script>
      performance.mark('Load ReactDOM');
    </script>
    <script src="react-dom.production.min.js"></script>
    <script>
      performance.measure('Load ReactDOM', 'Load ReactDOM');
      performance.measure('Load React+ReactDOM', 'Load React+ReactDOM');
    </script>
    <script src="top-stories.js"></script>
    <script src="benchmark.js"></script>
    <script>
      performance.mark('Initial Render');
      render();
      performance.measure('Initial Render', 'Initial Render');
      requestAnimationFrame(() => {
        performance.mark('Update Render');
        render();
        performance.measure('Update Render', 'Update Render');
      });
    </script>
  </body>
</html>