File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import Layout from "@theme/Layout" ;
21import * as d3 from "d3" ;
32import React , { useEffect , useRef } from "react" ;
43import * as zlib from "zlib" ;
@@ -83,9 +82,9 @@ export default function Benchmark() {
8382 } ) ;
8483
8584 return (
86- < Layout title = "BenchViz" >
87- { /* Results table */ }
85+ < >
8886 < h2 > Benchmark results</ h2 >
87+ { /* Results table */ }
8988 < table >
9089 < thead >
9190 < tr style = { { fontWeight : "bold" } } >
@@ -113,7 +112,7 @@ export default function Benchmark() {
113112 width = { garbageCreatedComparisonGraphWidth }
114113 height = { garbageCreatedComparisonGraphHeight }
115114 > </ svg >
116- </ Layout >
115+ </ >
117116 ) ;
118117}
119118
Original file line number Diff line number Diff line change 1+ import Layout from "@theme/Layout" ;
12import React from "react" ;
23import Benchmark from "./Benchmark" ;
34
45export default function CreateBenchmark ( ) {
56 const isSSR = typeof window === "undefined" ;
6- return (
7- ! isSSR && (
8- < React . Suspense fallback = { < div /> } >
9- < Benchmark />
10- </ React . Suspense >
11- )
12- ) ;
7+ return < Layout title = "Benchmark" > { ! isSSR && < Benchmark /> } </ Layout > ;
138}
You can’t perform that action at this time.
0 commit comments