@timber-js/app 0.2.0-alpha.32 → 0.2.0-alpha.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,7 +136,6 @@ export async function renderSsrNodeStream(
136
136
  const deferMs = options?.deferSuspenseFor;
137
137
 
138
138
  return new Promise<import('node:stream').Readable>((resolve, reject) => {
139
- const _startTime = performance.now();
140
139
  const passthrough = new _PassThrough!();
141
140
 
142
141
  let allReadyResolve: (() => void) | null = null;
@@ -149,20 +148,14 @@ export async function renderSsrNodeStream(
149
148
  bootstrapScriptContent: options?.bootstrapScriptContent || undefined,
150
149
 
151
150
  onShellReady() {
152
- const _shellReady = performance.now();
153
151
  if (deferMs && deferMs > 0) {
154
152
  Promise.race([allReady, new Promise<void>((r) => setTimeout(r, deferMs))]).then(() => {
155
153
  pipe(passthrough);
156
154
  resolve(passthrough);
157
155
  });
158
156
  } else {
159
- const _beforePipe = performance.now();
160
157
  pipe(passthrough);
161
- const _afterPipe = performance.now();
162
158
  resolve(passthrough);
163
- const _afterResolve = performance.now();
164
- // eslint-disable-next-line no-console
165
- console.log(`[ssr-perf] onShellReady=${(_shellReady - _startTime).toFixed(1)}ms pipe=${(_afterPipe - _beforePipe).toFixed(1)}ms resolve=${(_afterResolve - _afterPipe).toFixed(1)}ms`);
166
159
  }
167
160
  },
168
161