MCPcopy Index your code
hub / github.com/react/react / serveBenchmark

Function serveBenchmark

scripts/bench/server.js:58–64  ·  view source on GitHub ↗
(benchmark, http2)

Source from the content-addressed store, hash-verified

56}
57
58function serveBenchmark(benchmark, http2) {
59 if (http2) {
60 return createHTTP2Server(benchmark);
61 } else {
62 return createHTTPServer();
63 }
64}
65
66// if run directly via CLI
67if (require.main === module) {

Callers 2

runBenchmarksFunction · 0.85
server.jsFile · 0.85

Calls 2

createHTTP2ServerFunction · 0.85
createHTTPServerFunction · 0.85

Tested by

no test coverage detected