Skip to content

🎥 Make videos programmatically with React

remove lambda chunk optimization code - scrapped

Jonny Burger03ef3f1cc8c7
diff --git a/packages/lambda/src/functions/chunk-optimization/can-use-optimization.ts b/packages/lambda/src/functions/chunk-optimization/can-use-optimization.ts
deleted file mode 100644
index 2dd676a09c..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/can-use-optimization.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import {VERSION} from 'remotion/version';
-import type {OptimizationProfile} from './types';
-
-export const canUseOptimization = ({
- optimization,
- framesPerLambda,
- frameRange,
-}: {
- optimization: OptimizationProfile | null;
- framesPerLambda: number;
- frameRange: [number, number];
-}) => {
- if (!optimization) {
- return false;
- }
-
- if (optimization.framesPerLambda !== framesPerLambda) {
- return false;
- }
-
- if (optimization.lambdaVersion !== VERSION) {
- return false;
- }
-
- if (optimization.frameRange[0] !== frameRange[0]) {
- return false;
- }
-
- if (optimization.frameRange[1] !== frameRange[1]) {
- return false;
- }
-
- return true;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/collect-data.ts b/packages/lambda/src/functions/chunk-optimization/collect-data.ts
deleted file mode 100644
index e2bbb1956c..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/collect-data.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import type {AwsRegion} from '../../pricing/aws-regions';
-import {lambdaTimingsPrefix} from '../../shared/constants';
-import {streamToString} from '../../shared/stream-to-string';
-import {lambdaLs, lambdaReadFile} from '../helpers/io';
-import type {ChunkTimingData} from './types';
-
-export const collectChunkInformation = async ({
- bucketName,
- renderId,
- region,
- expectedBucketOwner,
-}: {
- bucketName: string;
- renderId: string;
- region: AwsRegion;
- expectedBucketOwner: string;
-}) => {
- const prefix = lambdaTimingsPrefix(renderId);
- const timingFiles = await lambdaLs({
- bucketName,
- prefix,
- region,
- expectedBucketOwner,
- });
- const timingFileContents = await Promise.all(
- timingFiles.map(async (file) => {
- const contents = await lambdaReadFile({
- bucketName,
- key: file.Key as string,
- region,
- expectedBucketOwner,
- });
- const string = await streamToString(contents);
- return JSON.parse(string) as ChunkTimingData;
- })
- );
- return timingFileContents;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/get-frame-ranges-from-profile.ts b/packages/lambda/src/functions/chunk-optimization/get-frame-ranges-from-profile.ts
deleted file mode 100644
index 8030aa3f70..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/get-frame-ranges-from-profile.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import type {TimingProfile} from './types';
-
-export const getFrameRangesFromProfile = (
- profile: TimingProfile
-): [number, number][] => {
- return profile.map((p) => p.frameRange);
-};
-
-export const sortProfileByFrameRanges = (profile: TimingProfile) => {
- return profile.slice().sort((a, b) => a.frameRange[0] - b.frameRange[0]);
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/get-profile-duration.ts b/packages/lambda/src/functions/chunk-optimization/get-profile-duration.ts
deleted file mode 100644
index 1e03127068..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/get-profile-duration.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import type {ChunkTimingData, TimingProfile} from './types';
-
-export const getTimingEndTimestamps = (chunk: ChunkTimingData): number[] => {
- return chunk.timings.map((timing) => chunk.startDate + timing);
-};
-
-const getProfileTimestamps = (chunks: TimingProfile) => {
- return chunks.map((c) => getTimingEndTimestamps(c));
-};
-
-export const getProfileDuration = (chunks: TimingProfile) => {
- const startTimeStamps = chunks.map((c) => c.startDate).flat(1);
- const endTimestamps = getProfileTimestamps(chunks).flat(1);
-
- const earliest = Math.min(...startTimeStamps);
- const latest = Math.max(...endTimestamps);
-
- return latest - earliest;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/is-valid-profile.ts b/packages/lambda/src/functions/chunk-optimization/is-valid-profile.ts
deleted file mode 100644
index d3597218d3..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/is-valid-profile.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import {RenderInternals} from '@remotion/renderer';
-import type {TimingProfile} from './types';
-
-export const isValidOptimizationProfile = (profile: TimingProfile) => {
- return profile.every((timing) => {
- const frames = RenderInternals.getFramesToRender(timing.frameRange, 1);
- const values = Object.values(timing.timings);
- return frames.length === values.length && values.every((v) => v > 0);
- });
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/optimize-invocation-order.ts b/packages/lambda/src/functions/chunk-optimization/optimize-invocation-order.ts
deleted file mode 100644
index dc0589bdd3..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/optimize-invocation-order.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import {sortProfileByDuration} from './sort-by-duration';
-import type {TimingProfile} from './types';
-
-export const optimizeInvocationOrder = (
- profile: TimingProfile
-): TimingProfile => {
- const sortedByDuration = sortProfileByDuration(profile).reverse();
- const sortedByStartTime = profile
- .slice()
- .map((a) => a.startDate)
- .sort((a, b) => a - b);
- const result = sortedByStartTime.map((prof, i) => {
- return {
- ...sortedByDuration[i],
- startDate: prof,
- };
- });
- return result;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/optimize-profile.ts b/packages/lambda/src/functions/chunk-optimization/optimize-profile.ts
deleted file mode 100644
index 2148b06eff..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/optimize-profile.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-import {getFrameRangesFromProfile} from './get-frame-ranges-from-profile';
-import {simulateFrameRanges} from './simulate-frame-ranges';
-import {sortProfileByDuration} from './sort-by-duration';
-import type {TimingProfile} from './types';
-
-export const assignFrameToOther = ({
- frameRanges,
- fromChunk,
- toChunk,
- framesToShift,
-}: {
- frameRanges: [number, number][];
- fromChunk: number;
- toChunk: number;
- framesToShift: number;
-}): [number, number][] => {
- if (fromChunk < toChunk) {
- return frameRanges.map((frameRange, i) => {
- if (i === fromChunk) {
- return [frameRange[0], frameRange[1] - framesToShift];
- }
-
- if (i === toChunk) {
- return [frameRange[0] - framesToShift, frameRange[1]];
- }
-
- if (i > fromChunk && i < toChunk) {
- return [frameRange[0] - framesToShift, frameRange[1] - framesToShift];
- }
-
- return frameRange;
- });
- }
-
- return frameRanges.map((frameRange, i) => {
- if (i === fromChunk) {
- return [frameRange[0] + framesToShift, frameRange[1]];
- }
-
- if (i === toChunk) {
- return [frameRange[0], frameRange[1] + framesToShift];
- }
-
- if (i > toChunk && i < fromChunk) {
- return [frameRange[0] + framesToShift, frameRange[1] + framesToShift];
- }
-
- return frameRange;
- });
-};
-
-export const optimizeProfile = (_profile: TimingProfile) => {
- const sortedByStart = _profile
- .slice()
- .sort((a, b) => a.frameRange[0] - b.frameRange[0]);
-
- const sortedByDuration = sortProfileByDuration(sortedByStart);
-
- const indexOfFastest = sortedByStart.indexOf(sortedByDuration[0]);
- if (indexOfFastest === -1) {
- throw new Error('invalid timing profile: ' + JSON.stringify(_profile));
- }
-
- const slowest = sortedByDuration[sortedByDuration.length - 1];
- const indexOfSlowest = sortedByStart.indexOf(slowest);
- if (indexOfSlowest === -1) {
- throw new Error('invalid timing profile: ' + JSON.stringify(_profile));
- }
-
- const frameRanges = getFrameRangesFromProfile(sortedByStart);
-
- if (indexOfFastest === indexOfSlowest) {
- return _profile;
- }
-
- const newFrameRanges = assignFrameToOther({
- frameRanges,
- fromChunk: indexOfSlowest,
- toChunk: indexOfFastest,
- framesToShift: Math.max(
- 1,
- Math.min(2, Math.floor(slowest.timings.length / 3))
- ),
- });
- const simulated = simulateFrameRanges({
- profile: sortedByStart,
- newFrameRanges,
- });
- return simulated;
-};
-
-export const optimizeProfileRecursively = (
- profile: TimingProfile,
- amount: number
-) => {
- let optimized = profile;
- for (let i = 0; i < amount; i++) {
- optimized = optimizeProfile(optimized);
- }
-
- return optimized;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/plan-frame-ranges.ts b/packages/lambda/src/functions/chunk-optimization/plan-frame-ranges.ts
index e766106b45..1ecb4de5aa 100644
--- a/packages/lambda/src/functions/chunk-optimization/plan-frame-ranges.ts
+++ b/packages/lambda/src/functions/chunk-optimization/plan-frame-ranges.ts
@@ -1,40 +1,20 @@
import {RenderInternals} from '@remotion/renderer';
-import {canUseOptimization} from './can-use-optimization';
-import type {OptimizationProfile} from './types';
export const planFrameRanges = ({
framesPerLambda,
- optimization,
- shouldUseOptimization,
frameRange,
everyNthFrame,
}: {
framesPerLambda: number;
- optimization: OptimizationProfile | null;
- shouldUseOptimization: boolean;
frameRange: [number, number];
everyNthFrame: number;
-}): {chunks: [number, number][]; didUseOptimization: boolean} => {
+}): {chunks: [number, number][]} => {
const framesToRender = RenderInternals.getFramesToRender(
frameRange,
everyNthFrame
);
const chunkCount = Math.ceil(framesToRender.length / framesPerLambda);
- if (
- canUseOptimization({
- optimization,
- framesPerLambda,
- frameRange,
- }) &&
- shouldUseOptimization
- ) {
- return {
- chunks: (optimization as OptimizationProfile).ranges,
- didUseOptimization: true,
- };
- }
-
const firstFrame = frameRange[0];
return {
chunks: new Array(chunkCount).fill(1).map((_, i) => {
@@ -47,6 +27,5 @@ export const planFrameRanges = ({
return [start, end];
}),
- didUseOptimization: false,
};
};
diff --git a/packages/lambda/src/functions/chunk-optimization/s3-optimization-file.ts b/packages/lambda/src/functions/chunk-optimization/s3-optimization-file.ts
deleted file mode 100644
index 24a2bfb433..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/s3-optimization-file.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-import type {AwsRegion} from '../../pricing/aws-regions';
-import {optimizationProfile} from '../../shared/constants';
-import {streamToString} from '../../shared/stream-to-string';
-import {lambdaLs, lambdaReadFile, lambdaWriteFile} from '../helpers/io';
-import type {OptimizationProfile} from './types';
-
-export const writeOptimization = async ({
- bucketName,
- optimization,
- compositionId,
- siteId,
- region,
- expectedBucketOwner,
-}: {
- bucketName: string;
- optimization: OptimizationProfile;
- compositionId: string;
- siteId: string;
- region: AwsRegion;
- expectedBucketOwner: string;
-}) => {
- await lambdaWriteFile({
- bucketName,
- body: JSON.stringify(optimization),
- key: optimizationProfile(siteId, compositionId) + '.json',
- region,
- privacy: 'private',
- expectedBucketOwner,
- downloadBehavior: null,
- customCredentials: null,
- });
-};
-
-export const getOptimization = async ({
- siteId,
- compositionId,
- bucketName,
- region,
- expectedBucketOwner,
-}: {
- bucketName: string;
- siteId: string;
- compositionId: string;
- region: AwsRegion;
- expectedBucketOwner: string;
-}): Promise<OptimizationProfile | null> => {
- const prefix = optimizationProfile(siteId, compositionId);
- const dir = await lambdaLs({
- bucketName,
- prefix,
- region,
- expectedBucketOwner,
- });
- const files = dir
- .sort(
- (a, b) =>
- (a.LastModified?.getTime() as number) -
- (b.LastModified?.getTime() as number)
- )
- .reverse();
- if (files.length === 0) {
- return null;
- }
-
- const body = await lambdaReadFile({
- bucketName,
- key: files[0].Key as string,
- region,
- expectedBucketOwner,
- });
-
- const str = await streamToString(body);
-
- return JSON.parse(str) as OptimizationProfile;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/simulate-frame-ranges.ts b/packages/lambda/src/functions/chunk-optimization/simulate-frame-ranges.ts
deleted file mode 100644
index 77885dbcdd..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/simulate-frame-ranges.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import type {ChunkTimingData, TimingProfile} from './types';
-
-export const getTimingForFrame = (profile: TimingProfile, frame: number) => {
- for (const timingInfo of profile) {
- if (timingInfo.frameRange[0] > frame || timingInfo.frameRange[1] < frame) {
- continue;
- }
-
- let lastTime = timingInfo.startDate;
- for (let i = 0; i < timingInfo.timings.length; i++) {
- const actualFrame = i + timingInfo.frameRange[0];
- const timing = timingInfo.timings[i];
- const absolute = timing + timingInfo.startDate;
- if (actualFrame === frame) {
- return absolute - lastTime;
- }
-
- lastTime = absolute;
- }
- }
-
- throw new Error(`Frame ${frame} was not rendered`);
-};
-
-export const getSimulatedTimingForFrameRange = (
- profile: TimingProfile,
- frameRange: [number, number]
-): ChunkTimingData['timings'] => {
- const timings: ChunkTimingData['timings'] = [];
-
- let totalDuration = 0;
- for (let i = frameRange[0]; i <= frameRange[1]; i++) {
- const timingForFrame = getTimingForFrame(profile, i);
- timings.push(timingForFrame + totalDuration);
- totalDuration += timingForFrame;
- }
-
- return timings;
-};
-
-export const simulateFrameRanges = ({
- profile,
- newFrameRanges,
-}: {
- profile: TimingProfile;
- newFrameRanges: [number, number][];
-}): TimingProfile => {
- if (profile.length !== newFrameRanges.length) {
- throw new Error('Expected previous and new frame ranges to be equal');
- }
-
- return newFrameRanges.map((range, i) => {
- return {
- timings: getSimulatedTimingForFrameRange(profile, range),
- chunk: i,
- frameRange: range,
- startDate: profile[i].startDate,
- };
- });
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/sort-by-duration.ts b/packages/lambda/src/functions/chunk-optimization/sort-by-duration.ts
deleted file mode 100644
index 826823dcdc..0000000000
--- a/packages/lambda/src/functions/chunk-optimization/sort-by-duration.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import {getTimingEndTimestamps} from './get-profile-duration';
-import type {ChunkTimingData, TimingProfile} from './types';
-
-const durationCache = new Map<ChunkTimingData, number>();
-
-const getChunkDuration = (chunk: ChunkTimingData) => {
- const inCache = durationCache.get(chunk);
- if (inCache) {
- return inCache;
- }
-
- const timestamps = getTimingEndTimestamps(chunk);
- const duration = Math.max(...timestamps) - chunk.startDate;
- durationCache.set(chunk, duration);
- return duration;
-};
-
-export const sortProfileByDuration = (profile: TimingProfile) => {
- const sortedByDuration = profile.slice().sort((a, b) => {
- const aDuration = getChunkDuration(a);
- const bDuration = getChunkDuration(b);
-
- return aDuration - bDuration;
- });
- durationCache.clear();
-
- return sortedByDuration;
-};
diff --git a/packages/lambda/src/functions/chunk-optimization/types.ts b/packages/lambda/src/functions/chunk-optimization/types.ts
index f397f65131..8e796dd33c 100644
--- a/packages/lambda/src/functions/chunk-optimization/types.ts
+++ b/packages/lambda/src/functions/chunk-optimization/types.ts
@@ -10,16 +10,3 @@ export type ObjectChunkTimingData = {
export type ChunkTimingData = Omit<ObjectChunkTimingData, 'timings'> & {
timings: number[];
};
-
-export type TimingProfile = ChunkTimingData[];
-
-export type OptimizationProfile = {
- ranges: [number, number][];
- frameRange: [number, number];
- oldTiming: number;
- newTiming: number;
- createdFromRenderId: string;
- framesPerLambda: number;
- lambdaVersion: string;
- everyNthFrame: number;
-};
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 5e59976d6b..c1313e82cf 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -25,17 +25,7 @@ import {getServeUrlHash} from '../shared/make-s3-url';
import {validateFramesPerLambda} from '../shared/validate-frames-per-lambda';
import {validateOutname} from '../shared/validate-outname';
import {validatePrivacy} from '../shared/validate-privacy';
-import {collectChunkInformation} from './chunk-optimization/collect-data';
-import {getFrameRangesFromProfile} from './chunk-optimization/get-frame-ranges-from-profile';
-import {getProfileDuration} from './chunk-optimization/get-profile-duration';
-import {isValidOptimizationProfile} from './chunk-optimization/is-valid-profile';
-import {optimizeInvocationOrder} from './chunk-optimization/optimize-invocation-order';
-import {optimizeProfileRecursively} from './chunk-optimization/optimize-profile';
import {planFrameRanges} from './chunk-optimization/plan-frame-ranges';
-import {
- getOptimization,
- writeOptimization,
-} from './chunk-optimization/s3-optimization-file';
import {bestFramesPerLambdaParam} from './helpers/best-frames-per-lambda-param';
import {concatVideosS3} from './helpers/concat-videos';
import {createPostRenderData} from './helpers/create-post-render-data';
@@ -148,19 +138,10 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
}
}, Math.max(options.getRemainingTimeInMillis() - 1000, 1000));
- const [browserInstance, optimization] = await Promise.all([
- getBrowserInstance(
- RenderInternals.isEqualOrBelowLogLevel(params.logLevel, 'verbose'),
- params.chromiumOptions
- ),
- getOptimization({
- bucketName: params.bucketName,
- siteId: getServeUrlHash(params.serveUrl),
- compositionId: params.composition,
- region: getCurrentRegionInFunction(),
- expectedBucketOwner: options.expectedBucketOwner,
- }),
- ]);
+ const browserInstance = await getBrowserInstance(
+ RenderInternals.isEqualOrBelowLogLevel(params.logLevel, 'verbose'),
+ params.chromiumOptions
+ );
const downloadMap = RenderInternals.makeDownloadMap();
@@ -234,11 +215,8 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
validatePrivacy(params.privacy);
RenderInternals.validatePuppeteerTimeout(params.timeoutInMilliseconds);
- const {chunks, didUseOptimization} = planFrameRanges({
+ const {chunks} = planFrameRanges({
framesPerLambda,
- optimization,
- // TODO: Re-enable chunk optimization later
- shouldUseOptimization: false,
frameRange: realFrameRange,
everyNthFrame: params.everyNthFrame,
});
@@ -299,7 +277,6 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
compositionId: comp.id,
siteId: getServeUrlHash(params.serveUrl),
codec: params.codec,
- usesOptimizationProfile: didUseOptimization,
type: 'video',
imageFormat: params.imageFormat,
inputProps: params.inputProps,
@@ -486,52 +463,12 @@ const innerLaunchHandler = async (params: LambdaPayload, options: Options) => {
customCredentials,
});
- let chunkProm: Promise<unknown> = Promise.resolve();
-
- // TODO: Enable in a later release
- const enableChunkOptimization = false;
-
- if (enableChunkOptimization) {
- const chunkData = await collectChunkInformation({
- bucketName: params.bucketName,
- renderId: params.renderId,
- region: getCurrentRegionInFunction(),
- expectedBucketOwner: options.expectedBucketOwner,
- });
- const optimizedProfile = optimizeInvocationOrder(
- optimizeProfileRecursively(chunkData, 400)
- );
- const optimizedFrameRange = getFrameRangesFromProfile(optimizedProfile);
- chunkProm = isValidOptimizationProfile(optimizedProfile)
- ? writeOptimization({
- bucketName: params.bucketName,
- optimization: {
- ranges: optimizedFrameRange,
- oldTiming: getProfileDuration(chunkData),
- newTiming: getProfileDuration(optimizedProfile),
- createdFromRenderId: params.renderId,
- framesPerLambda,
- lambdaVersion: VERSION,
- frameRange: realFrameRange,
- everyNthFrame: params.everyNthFrame,
- },
- expectedBucketOwner: options.expectedBucketOwner,
- compositionId: params.composition,
- siteId: getServeUrlHash(params.serveUrl),
- region: getCurrentRegionInFunction(),
- })
- : Promise.resolve();
- }
-
- const [, contents] = await Promise.all([
- chunkProm,
- lambdaLs({
- bucketName: params.bucketName,
- prefix: rendersPrefix(params.renderId),
- expectedBucketOwner: options.expectedBucketOwner,
- region: getCurrentRegionInFunction(),
- }),
- ]);
+ const contents = await lambdaLs({
+ bucketName: params.bucketName,
+ prefix: rendersPrefix(params.renderId),
+ expectedBucketOwner: options.expectedBucketOwner,
+ region: getCurrentRegionInFunction(),
+ });
const finalEncodingProgress: EncodingProgress = {
framesEncoded: frameCount.length,
totalFrames: frameCount.length,
diff --git a/packages/lambda/src/functions/still.ts b/packages/lambda/src/functions/still.ts
index e88d67e0bc..b101397cd5 100644
--- a/packages/lambda/src/functions/still.ts
+++ b/packages/lambda/src/functions/still.ts
@@ -118,7 +118,6 @@ const innerStillHandler = async (
siteId: getServeUrlHash(lambdaParams.serveUrl),
totalChunks: 1,
type: 'still',
- usesOptimizationProfile: false,
imageFormat: lambdaParams.imageFormat,
inputProps: lambdaParams.inputProps,
lambdaVersion: VERSION,
diff --git a/packages/lambda/src/index.ts b/packages/lambda/src/index.ts
index a79681c503..23f28b17aa 100644
--- a/packages/lambda/src/index.ts
+++ b/packages/lambda/src/index.ts
@@ -1,5 +1,6 @@
import type {DeleteFunctionInput} from './api/delete-function';
import {deleteFunction} from './api/delete-function';
+import type {DeleteRenderInput} from './api/delete-render';
import {deleteRender} from './api/delete-render';
import type {DeleteSiteInput, DeleteSiteOutput} from './api/delete-site';
import {deleteSite} from './api/delete-site';
@@ -131,4 +132,5 @@ export type {
WebhookPayload,
LambdaErrorInfo,
EnhancedErrorInfo,
+ DeleteRenderInput,
};
diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.ts
index ab37e61c92..b909a90759 100644
--- a/packages/lambda/src/shared/constants.ts
+++ b/packages/lambda/src/shared/constants.ts
@@ -149,8 +149,6 @@ export type OutNameOutput = {
customCredentials: CustomCredentials | null;
};
-export const optimizationProfile = (siteId: string, compositionId: string) =>
- `optimization-profiles/${siteId}/${compositionId}/optimization-profile`;
export const getSitesKey = (siteId: string) => `sites/${siteId}`;
export const outName = (renderId: string, extension: string) =>
`${rendersPrefix(renderId)}/out.${extension}`;
@@ -362,7 +360,6 @@ export type RenderMetadata = {
estimatedRenderLambdaInvokations: number;
compositionId: string;
codec: Codec | null;
- usesOptimizationProfile: boolean;
type: 'still' | 'video';
imageFormat: ImageFormat;
inputProps: SerializedInputProps;
diff --git a/packages/lambda/src/test/demo-profile-2.ts b/packages/lambda/src/test/demo-profile-2.ts
deleted file mode 100644
index 7965b9187b..0000000000
--- a/packages/lambda/src/test/demo-profile-2.ts
+++ /dev/null
@@ -1,1327 +0,0 @@
-import type {TimingProfile} from '../functions/chunk-optimization/types';
-
-export const demoProfile2: TimingProfile = [
- {
- timings: [
- 818, 919, 1001, 1101, 1188, 1284, 1366, 1455, 1550, 1632, 1716, 1800,
- 1883, 1966, 2050, 2133, 2216, 2299, 2383, 2467,
- ],
- chunk: 0,
- frameRange: [0, 19],
- startDate: 1621618765164,
- },
- {
- timings: [
- 931, 1045, 1145, 1238, 1327, 1410, 1493, 1593, 1676, 1759, 1845, 1926,
- 2010, 2093, 2182, 2260, 2344, 2428, 2529, 2611,
- ],
- chunk: 1,
- frameRange: [20, 39],
- startDate: 1621618764838,
- },
- {
- timings: [
- 1004, 1254, 1470, 1671, 1885, 2103, 2341, 2551, 2751, 2951, 3150, 3351,
- 3552, 3767, 3988, 4200, 4419, 4634, 4851, 5067,
- ],
- chunk: 10,
- frameRange: [200, 219],
- startDate: 1621618765325,
- },
- {
- timings: [
- 964, 1091, 1190, 1308, 1416, 1508, 1608, 1716, 1808, 1908, 1993, 2093,
- 2175, 2256, 2360, 2464, 2580, 2672, 2757, 2874,
- ],
- chunk: 100,
- frameRange: [2000, 2019],
- startDate: 1621618765066,
- },
- {
- timings: [
- 1004, 1137, 1250, 1382, 1481, 1581, 1703, 1816, 1915, 2011, 2094, 2181,
- 2262, 2343, 2450, 2552, 2646, 2744, 2829, 2927,
- ],
- chunk: 101,
- frameRange: [2020, 2039],
- startDate: 1621618765322,
- },
- {
- timings: [
- 957, 1072, 1171, 1284, 1368, 1451, 1535, 1639, 1735, 1819, 1900, 1990,
- 2069, 2172, 2253, 2336, 2437, 2534, 2620, 2719,
- ],
- chunk: 102,
- frameRange: [2040, 2059],
- startDate: 1621618765219,
- },
- {
- timings: [
- 967, 1092, 1189, 1305, 1404, 1488, 1573, 1675, 1779, 1872, 1954, 2042,
- 2121, 2225, 2308, 2391, 2490, 2589, 2672, 2773,
- ],
- chunk: 103,
- frameRange: [2060, 2079],
- startDate: 1621618765158,
- },
- {
- timings: [
- 918, 1056, 1156, 1254, 1335, 1436, 1551, 1649, 1735, 1815, 1899, 1982,
- 2070, 2166, 2253, 2333, 2416, 2499, 2583, 2665,
- ],
- chunk: 104,
- frameRange: [2080, 2099],
- startDate: 1621618765292,
- },
- {
- timings: [
- 831, 933, 1023, 1099, 1182, 1272, 1368, 1448, 1532, 1615, 1698, 1781,
- 1848, 1932, 2016, 2097, 2165, 2249, 2333, 2416,
- ],
- chunk: 105,
- frameRange: [2100, 2119],
- startDate: 1621618765128,
- },
- {
- timings: [
- 866, 985, 1073, 1167, 1250, 1341, 1433, 1516, 1599, 1682, 1765, 1851,
- 1933, 2017, 2100, 2182, 2266, 2351, 2433, 2515,
- ],
- chunk: 106,
- frameRange: [2120, 2139],
- startDate: 1621618765140,
- },
- {
- timings: [
- 849, 953, 1042, 1117, 1201, 1287, 1383, 1465, 1532, 1616, 1699, 1781,
- 1868, 1949, 2033, 2115, 2199, 2282, 2350, 2435,
- ],
- chunk: 107,
- frameRange: [2140, 2159],
- startDate: 1621618765295,
- },
- {
- timings: [
- 752, 866, 954, 1031, 1116, 1211, 1297, 1382, 1463, 1548, 1632, 1722, 1799,
- 1881, 1966, 2048, 2131, 2214, 2298, 2378,
- ],
- chunk: 108,
- frameRange: [2160, 2179],
- startDate: 1621618761700,
- },
- {
- timings: [
- 816, 932, 1014, 1095, 1180, 1295, 1378, 1460, 1545, 1627, 1712, 1794,
- 1878, 1982, 2064, 2144, 2228, 2311, 2393, 2479,
- ],
- chunk: 109,
- frameRange: [2180, 2199],
- startDate: 1621618765272,
- },
- {
- timings: [
- 1022, 1140, 1223, 1356, 1438, 1556, 1657, 1762, 1859, 1943, 2028, 2126,
- 2212, 2294, 2381, 2478, 2561, 2661, 2744, 2830,
- ],
- chunk: 11,
- frameRange: [220, 239],
- startDate: 1621618765200,
- },
- {
- timings: [
- 889, 991, 1078, 1156, 1242, 1359, 1440, 1522, 1605, 1705, 1790, 1872,
- 1958, 2038, 2123, 2204, 2289, 2372, 2455, 2538,
- ],
- chunk: 110,
- frameRange: [2200, 2219],
- startDate: 1621618765025,
- },
- {
- timings: [
- 879, 1010, 1101, 1182, 1299, 1397, 1481, 1569, 1649, 1731, 1814, 1899,
- 1984, 2066, 2149, 2231, 2315, 2397, 2481, 2567,
- ],
- chunk: 111,
- frameRange: [2220, 2239],
- startDate: 1621618765164,
- },
- {
- timings: [
- 853, 957, 1039, 1120, 1203, 1304, 1387, 1486, 1569, 1654, 1736, 1822,
- 1903, 1986, 2071, 2153, 2237, 2320, 2403, 2486,
- ],
- chunk: 112,
- frameRange: [2240, 2259],
- startDate: 1621618765007,
- },
- {
- timings: [
- 952, 1069, 1168, 1267, 1366, 1465, 1548, 1650, 1734, 1833, 1917, 2019,
- 2116, 2202, 2308, 2399, 2500, 2600, 2683, 2783,
- ],
- chunk: 113,
- frameRange: [2260, 2279],
- startDate: 1621618765096,
- },
- {
- timings: [
- 932, 1064, 1153, 1247, 1332, 1446, 1528, 1630, 1712, 1795, 1879, 1962,
- 2046, 2146, 2232, 2313, 2395, 2478, 2563, 2662,
- ],
- chunk: 114,
- frameRange: [2280, 2299],
- startDate: 1621618765047,
- },
- {
- timings: [
- 895, 1013, 1099, 1196, 1281, 1378, 1461, 1550, 1628, 1712, 1797, 1895,
- 1978, 2061, 2148, 2228, 2312, 2395, 2478, 2560,
- ],
- chunk: 115,
- frameRange: [2300, 2319],
- startDate: 1621618765051,
- },
- {
- timings: [
- 895, 1014, 1116, 1234, 1328, 1427, 1513, 1626, 1711, 1792, 1927, 2011,
- 2092, 2175, 2276, 2358, 2441, 2524, 2608, 2691,
- ],
- chunk: 116,
- frameRange: [2320, 2339],
- startDate: 1621618765148,
- },
- {
- timings: [
- 920, 1021, 1105, 1188, 1303, 1403, 1503, 1586, 1670, 1753, 1836, 1921,
- 2004, 2086, 2174, 2253, 2336, 2420, 2505, 2586,
- ],
- chunk: 117,
- frameRange: [2340, 2359],
- startDate: 1621618765189,
- },
- {
- timings: [
- 978, 1092, 1174, 1277, 1374, 1491, 1573, 1657, 1741, 1824, 1908, 1990,
- 2074, 2157, 2241, 2323, 2408, 2490, 2583, 2672,
- ],
- chunk: 118,
- frameRange: [2360, 2379],
- startDate: 1621618764901,
- },
- {
- timings: [
- 943, 1039, 1124, 1206, 1306, 1406, 1490, 1589, 1673, 1755, 1838, 1922,
- 2005, 2091, 2174, 2257, 2341, 2423, 2515, 2608,
- ],
- chunk: 119,
- frameRange: [2380, 2399],
- startDate: 1621618765115,
- },
- {
- timings: [
- 1114, 1250, 1350, 1448, 1549, 1687, 1857, 1981, 2082, 2202, 2317, 2417,
- 2518, 2615, 2723, 2832, 2932, 3031, 3132, 3234,
- ],
- chunk: 12,
- frameRange: [240, 259],
- startDate: 1621618764890,
- },
- {
- timings: [
- 914, 1017, 1118, 1199, 1299, 1398, 1482, 1564, 1651, 1734, 1815, 1898,
- 1983, 2065, 2152, 2233, 2314, 2398, 2484, 2581,
- ],
- chunk: 120,
- frameRange: [2400, 2419],
- startDate: 1621618765042,
- },
- {
- timings: [
- 892, 995, 1077, 1159, 1243, 1334, 1409, 1494, 1576, 1659, 1742, 1825,
- 1910, 1993, 2080, 2160, 2242, 2325, 2410, 2494,
- ],
- chunk: 121,
- frameRange: [2420, 2439],
- startDate: 1621618765115,
- },
- {
- timings: [
- 966, 1078, 1162, 1262, 1362, 1451, 1528, 1620, 1694, 1779, 1860, 1944,
- 2031, 2113, 2198, 2278, 2362, 2447, 2527, 2628,
- ],
- chunk: 122,
- frameRange: [2440, 2459],
- startDate: 1621618765239,
- },
- {
- timings: [
- 916, 1018, 1100, 1199, 1283, 1373, 1449, 1532, 1616, 1698, 1781, 1864,
- 1952, 2032, 2118, 2198, 2281, 2364, 2449, 2548,
- ],
- chunk: 123,
- frameRange: [2460, 2479],
- startDate: 1621618765097,
- },
- {
- timings: [
- 904, 1007, 1089, 1188, 1271, 1361, 1437, 1541, 1620, 1704, 1786, 1876,
- 1955, 2037, 2124, 2203, 2289, 2370, 2454, 2537,
- ],
- chunk: 124,
- frameRange: [2480, 2499],
- startDate: 1621618765144,
- },
- {
- timings: [
- 957, 1070, 1153, 1253, 1353, 1457, 1553, 1637, 1718, 1802, 1924, 2006,
- 2084, 2179, 2274, 2362, 2457, 2554, 2640, 2737,
- ],
- chunk: 125,
- frameRange: [2500, 2519],
- startDate: 1621618765228,
- },
- {
- timings: [
- 941, 1054, 1158, 1251, 1334, 1453, 1552, 1651, 1734, 1818, 1902, 2004,
- 2101, 2201, 2288, 2386, 2469, 2570, 2668, 2768,
- ],
- chunk: 126,
- frameRange: [2520, 2539],
- startDate: 1621618765048,
- },
- {
- timings: [
- 991, 1106, 1211, 1305, 1404, 1525, 1620, 1721, 1802, 1886, 1971, 2053,
- 2152, 2236, 2324, 2419, 2503, 2603, 2685, 2787,
- ],
- chunk: 127,
- frameRange: [2540, 2559],
- startDate: 1621618765292,
- },
- {
- timings: [
- 966, 1081, 1181, 1277, 1381, 1501, 1594, 1694, 1793, 1877, 1965, 2060,
- 2143, 2227, 2314, 2409, 2510, 2610, 2693, 2777,
- ],
- chunk: 128,
- frameRange: [2560, 2579],
- startDate: 1621618765495,
- },
- {
- timings: [
- 943, 1062, 1163, 1259, 1341, 1464, 1559, 1658, 1741, 1824, 1908, 1991,
- 2075, 2158, 2261, 2342, 2424, 2509, 2591, 2674,
- ],
- chunk: 129,
- frameRange: [2580, 2599],
- startDate: 1621618765322,
- },
- {
- timings: [
- 1155, 1305, 1405, 1499, 1599, 1720, 1833, 1949, 2048, 2150, 2233, 2333,
- 2434, 2532, 2622, 2718, 2819, 2915, 3000, 3105,
- ],
- chunk: 13,
- frameRange: [260, 279],
- startDate: 1621618765193,
- },
- {
- timings: [
- 968, 1099, 1197, 1295, 1380, 1501, 1595, 1694, 1778, 1862, 1946, 2044,
- 2128, 2212, 2299, 2396, 2479, 2579, 2677, 2762,
- ],
- chunk: 130,
- frameRange: [2600, 2619],
- startDate: 1621618765212,
- },
- {
- timings: [
- 843, 943, 1026, 1108, 1192, 1312, 1410, 1525, 1608, 1691, 1775, 1858,
- 1941, 2024, 2112, 2191, 2276, 2358, 2441, 2525,
- ],
- chunk: 131,
- frameRange: [2620, 2639],
- startDate: 1621618761730,
- },
- {
- timings: [
- 1051, 1174, 1279, 1404, 1502, 1584, 1667, 1770, 1869, 1949, 2053, 2133,
- 2216, 2301, 2409, 2499, 2582, 2665, 2752, 2849,
- ],
- chunk: 132,
- frameRange: [2640, 2659],
- startDate: 1621618765035,
- },
- {
- timings: [
- 900, 1001, 1086, 1202, 1307, 1383, 1469, 1585, 1684, 1768, 1869, 1984,
- 2068, 2150, 2255, 2350, 2435, 2533, 2635, 2733,
- ],
- chunk: 133,
- frameRange: [2660, 2679],
- startDate: 1621618765396,
- },
- {
- timings: [
- 877, 1022, 1130, 1264, 1362, 1463, 1563, 1696, 1797, 1896, 1999, 2130,
- 2238, 2346, 2451, 2563, 2664, 2762, 2864, 2981,
- ],
- chunk: 134,
- frameRange: [2680, 2699],
- startDate: 1621618765457,
- },
- {
- timings: [
- 922, 1058, 1174, 1316, 1439, 1538, 1639, 1774, 1874, 1989, 2111, 2240,
- 2338, 2439, 2564, 2673, 2772, 2872, 2972, 3074,
- ],
- chunk: 135,
- frameRange: [2700, 2719],
- startDate: 1621618765093,
- },
- {
- timings: [
- 969, 1118, 1252, 1408, 1531, 1649, 1749, 1880, 1998, 2114, 2244, 2381,
- 2497, 2614, 2740, 2848, 2950, 3064, 3184, 3297,
- ],
- chunk: 136,
- frameRange: [2720, 2739],
- startDate: 1621618764943,
- },
- {
- timings: [
- 1003, 1154, 1271, 1426, 1534, 1634, 1752, 1868, 1968, 2069, 2170, 2302,
- 2415, 2518, 2627, 2736, 2835, 2937, 3036, 3136,
- ],
- chunk: 137,
- frameRange: [2740, 2759],
- startDate: 1621618765335,
- },
- {
- timings: [
- 991, 1128, 1243, 1378, 1475, 1574, 1676, 1791, 1891, 1991, 2102, 2225,
- 2325, 2425, 2530, 2641, 2742, 2842, 2942, 3041,
- ],
- chunk: 138,
- frameRange: [2760, 2779],
- startDate: 1621618765364,
- },
- {
- timings: [
- 900, 1046, 1168, 1303, 1418, 1515, 1618, 1732, 1832, 1930, 2036, 2148,
- 2248, 2349, 2459, 2547, 2648, 2748, 2847, 2947,
- ],
- chunk: 139,
- frameRange: [2780, 2799],
- startDate: 1621618765132,
- },
- {
- timings: [
- 1101, 1223, 1321, 1420, 1536, 1640, 1734, 1851, 1951, 2034, 2168, 2269,
- 2365, 2499, 2657, 2746, 2830, 2917, 3000, 3081,
- ],
- chunk: 14,
- frameRange: [280, 299],
- startDate: 1621618765012,
- },
- {
- timings: [
- 939, 1074, 1190, 1345, 1441, 1539, 1639, 1754, 1854, 1955, 2059, 2188,
- 2288, 2388, 2499, 2586, 2687, 2800, 2887, 2987,
- ],
- chunk: 140,
- frameRange: [2800, 2819],
- startDate: 1621618765311,
- },
- {
- timings: [
- 912, 1047, 1163, 1315, 1429, 1527, 1629, 1744, 1844, 1945, 2047, 2178,
- 2279, 2378, 2484, 2612, 2713, 2813, 2913, 3011,
- ],
- chunk: 141,
- frameRange: [2820, 2839],
- startDate: 1621618765140,
- },
- {
- timings: [
- 1009, 1155, 1293, 1444, 1551, 1652, 1771, 1902, 2029, 2134, 2257, 2385,
- 2484, 2586, 2694, 2802, 2902, 3017, 3119, 3241,
- ],
- chunk: 142,
- frameRange: [2840, 2859],
- startDate: 1621618765221,
- },
- {
- timings: [
- 903, 1058, 1173, 1310, 1403, 1504, 1605, 1738, 1836, 1937, 2045, 2170,
- 2270, 2370, 2479, 2569, 2669, 2770, 2871, 2970,
- ],
- chunk: 143,
- frameRange: [2860, 2879],
- startDate: 1621618764877,
- },
- {
- timings: [
- 898, 1058, 1183, 1322, 1433, 1548, 1650, 1765, 1864, 1966, 2067, 2198,
- 2298, 2397, 2502, 2615, 2716, 2814, 2914, 3014,
- ],
- chunk: 144,
- frameRange: [2880, 2899],
- startDate: 1621618765132,
- },
- {
- timings: [
- 853, 969, 1085, 1224, 1334, 1435, 1535, 1652, 1765, 1868, 1976, 2101,
- 2200, 2301, 2408, 2516, 2617, 2716, 2816, 2916,
- ],
- chunk: 145,
- frameRange: [2900, 2919],
- startDate: 1621618761683,
- },
- {
- timings: [
- 952, 1101, 1232, 1362, 1462, 1560, 1660, 1776, 1876, 1958, 2025, 2091,
- 2175, 2259,
- ],
- chunk: 146,
- frameRange: [2920, 2933],
- startDate: 1621618765043,
- },
- {
- timings: [
- 926, 1044, 1126, 1211, 1293, 1398, 1517, 1611, 1693, 1776, 1860, 1961,
- 2064, 2142, 2231, 2311, 2393, 2476, 2577, 2678,
- ],
- chunk: 15,
- frameRange: [300, 319],
- startDate: 1621618764966,
- },
- {
- timings: [
- 974, 1092, 1175, 1275, 1357, 1462, 1560, 1658, 1739, 1823, 1926, 2007,
- 2094, 2174, 2259, 2341, 2429, 2524, 2605, 2690,
- ],
- chunk: 16,
- frameRange: [320, 339],
- startDate: 1621618764843,
- },
- {
- timings: [
- 844, 926, 1010, 1128, 1226, 1341, 1431, 1543, 1624, 1709, 1788, 1888,
- 1973, 2057, 2140, 2223, 2308, 2406, 2489, 2573,
- ],
- chunk: 17,
- frameRange: [340, 359],
- startDate: 1621618761701,
- },
- {
- timings: [
- 944, 1056, 1140, 1245, 1357, 1440, 1521, 1621, 1704, 1787, 1872, 1971,
- 2054, 2154, 2241, 2340, 2427, 2522, 2623, 2706,
- ],
- chunk: 18,
- frameRange: [360, 379],
- startDate: 1621618765365,
- },
- {
- timings: [
- 843, 962, 1052, 1152, 1243, 1326, 1409, 1509, 1594, 1676, 1762, 1842,
- 1926, 2026, 2110, 2209, 2300, 2395, 2494, 2576,
- ],
- chunk: 19,
- frameRange: [380, 399],
- startDate: 1621618765208,
- },
- {
- timings: [
- 926, 1043, 1156, 1257, 1395, 1486, 1569, 1671, 1754, 1837, 1921, 2004,
- 2087, 2188, 2276, 2370, 2471, 2573, 2673, 2769,
- ],
- chunk: 2,
- frameRange: [40, 59],
- startDate: 1621618765316,
- },
- {
- timings: [
- 928, 1043, 1142, 1269, 1375, 1474, 1556, 1656, 1739, 1823, 1907, 2006,
- 2089, 2189, 2277, 2372, 2462, 2555, 2656, 2757,
- ],
- chunk: 20,
- frameRange: [400, 419],
- startDate: 1621618765222,
- },
- {
- timings: [
- 953, 1064, 1165, 1290, 1397, 1496, 1579, 1696, 1796, 1879, 1964, 2062,
- 2162, 2279, 2383, 2478, 2585, 2677, 2794, 2893,
- ],
- chunk: 21,
- frameRange: [420, 439],
- startDate: 1621618765096,
- },
- {
- timings: [
- 956, 1071, 1152, 1235, 1317, 1418, 1521, 1618, 1701, 1787, 1884, 1969,
- 2050, 2133, 2219, 2300, 2383, 2469, 2550, 2636,
- ],
- chunk: 22,
- frameRange: [440, 459],
- startDate: 1621618765179,
- },
- {
- timings: [
- 834, 938, 1020, 1102, 1184, 1268, 1370, 1451, 1517, 1584, 1667, 1752,
- 1834, 1932, 2004, 2084, 2167, 2252, 2333, 2418,
- ],
- chunk: 23,
- frameRange: [460, 479],
- startDate: 1621618765295,
- },
- {
- timings: [
- 886, 1030, 1118, 1197, 1280, 1364, 1470, 1552, 1629, 1712, 1813, 1897,
- 1980, 2081, 2166, 2263, 2363, 2463, 2564, 2680,
- ],
- chunk: 24,
- frameRange: [480, 499],
- startDate: 1621618765126,
- },
- {
- timings: [
- 992, 1124, 1224, 1359, 1489, 1605, 1705, 1820, 1921, 2020, 2121, 2232,
- 2359, 2454, 2557, 2692, 2788, 2888, 2988, 3089,
- ],
- chunk: 25,
- frameRange: [500, 519],
- startDate: 1621618765031,
- },
- {
- timings: [
- 915, 1055, 1153, 1267, 1383, 1516, 1615, 1733, 1831, 1914, 2014, 2097,
- 2198, 2297, 2399, 2497, 2582, 2680, 2765, 2865,
- ],
- chunk: 26,
- frameRange: [520, 539],
- startDate: 1621618765163,
- },
- {
- timings: [
- 876, 990, 1092, 1190, 1305, 1404, 1489, 1605, 1687, 1771, 1855, 1937,
- 2039, 2122, 2209, 2305, 2389, 2471, 2554, 2639,
- ],
- chunk: 27,
- frameRange: [540, 559],
- startDate: 1621618765193,
- },
- {
- timings: [
- 885, 984, 1086, 1183, 1282, 1382, 1465, 1557, 1648, 1731, 1814, 1900,
- 1998, 2080, 2166, 2264, 2347, 2431, 2514, 2598,
- ],
- chunk: 28,
- frameRange: [560, 579],
- startDate: 1621618761755,
- },
- {
- timings: [
- 852, 953, 1055, 1156, 1269, 1368, 1452, 1569, 1651, 1735, 1818, 1901,
- 1986, 2069, 2153, 2269, 2351, 2451, 2535, 2619,
- ],
- chunk: 29,
- frameRange: [580, 599],
- startDate: 1621618761687,
- },
- {
- timings: [
- 865, 989, 1081, 1185, 1296, 1380, 1464, 1564, 1647, 1731, 1815, 1899,
- 1981, 2080, 2168, 2264, 2347, 2434, 2532, 2616,
- ],
- chunk: 3,
- frameRange: [60, 79],
- startDate: 1621618764922,
- },
- {
- timings: [
- 965, 1078, 1180, 1299, 1394, 1494, 1577, 1677, 1760, 1843, 1927, 2011,
- 2093, 2176, 2261, 2360, 2443, 2526, 2611, 2710,
- ],
- chunk: 30,
- frameRange: [600, 619],
- startDate: 1621618765154,
- },
- {
- timings: [
- 922, 1036, 1137, 1240, 1353, 1451, 1534, 1634, 1736, 1817, 1901, 1985,
- 2072, 2168, 2257, 2353, 2434, 2534, 2617, 2701,
- ],
- chunk: 31,
- frameRange: [620, 639],
- startDate: 1621618765311,
- },
- {
- timings: [
- 867, 986, 1071, 1174, 1268, 1351, 1434, 1533, 1619, 1701, 1784, 1867,
- 1951, 2034, 2119, 2200, 2284, 2367, 2450, 2535,
- ],
- chunk: 32,
- frameRange: [640, 659],
- startDate: 1621618764923,
- },
- {
- timings: [
- 901, 1054, 1168, 1267, 1349, 1433, 1537, 1634, 1724, 1824, 1916, 1999,
- 2083, 2166, 2251, 2332, 2417, 2507, 2581, 2666,
- ],
- chunk: 33,
- frameRange: [660, 679],
- startDate: 1621618764971,
- },
- {
- timings: [
- 900, 1039, 1136, 1231, 1314, 1397, 1483, 1569, 1665, 1748, 1830, 1918,
- 1998, 2082, 2169, 2246, 2331, 2430, 2513, 2599,
- ],
- chunk: 34,
- frameRange: [680, 699],
- startDate: 1621618766673,
- },
- {
- timings: [
- 942, 1082, 1183, 1294, 1376, 1461, 1545, 1636, 1732, 1827, 1925, 2008,
- 2092, 2176, 2277, 2358, 2443, 2544, 2626, 2709,
- ],
- chunk: 35,
- frameRange: [700, 719],
- startDate: 1621618765383,
- },
- {
- timings: [
- 925, 1062, 1162, 1291, 1373, 1457, 1541, 1643, 1743, 1847, 1923, 2007,
- 2091, 2176, 2277, 2361, 2441, 2541, 2623, 2708,
- ],
- chunk: 36,
- frameRange: [720, 739],
- startDate: 1621618765091,
- },
- {
- timings: [
- 1043, 1194, 1312, 1436, 1537, 1636, 1737, 1852, 1953, 2086, 2184, 2267,
- 2367, 2451, 2570, 2650, 2735, 2851, 2935, 3017,
- ],
- chunk: 37,
- frameRange: [740, 759],
- startDate: 1621618765195,
- },
- {
- timings: [
- 1048, 1184, 1316, 1442, 1542, 1629, 1725, 1858, 1961, 2062, 2158, 2259,
- 2341, 2442, 2541, 2641, 2760, 2874, 2958, 3059,
- ],
- chunk: 38,
- frameRange: [760, 779],
- startDate: 1621618764926,
- },
- {
- timings: [
- 910, 1048, 1174, 1276, 1376, 1461, 1545, 1644, 1738, 1827, 1962, 2043,
- 2127, 2211, 2298, 2376, 2461, 2577, 2661, 2744,
- ],
- chunk: 39,
- frameRange: [780, 799],
- startDate: 1621618764778,
- },
- {
- timings: [
- 866, 992, 1099, 1188, 1315, 1397, 1480, 1580, 1664, 1746, 1832, 1913,
- 1999, 2097, 2184, 2262, 2346, 2432, 2530, 2613,
- ],
- chunk: 4,
- frameRange: [80, 99],
- startDate: 1621618765344,
- },
- {
- timings: [
- 1009, 1168, 1275, 1386, 1485, 1585, 1672, 1787, 1905, 2002, 2101, 2184,
- 2267, 2370, 2455, 2538, 2619, 2735, 2817, 2903,
- ],
- chunk: 40,
- frameRange: [800, 819],
- startDate: 1621618765162,
- },
- {
- timings: [
- 985, 1136, 1258, 1362, 1444, 1544, 1630, 1730, 1830, 1930, 2027, 2110,
- 2194, 2295, 2395, 2510, 2593, 2699, 2793, 2878,
- ],
- chunk: 41,
- frameRange: [820, 839],
- startDate: 1621618765099,
- },
- {
- timings: [
- 913, 1055, 1170, 1262, 1345, 1445, 1530, 1631, 1735, 1831, 1927, 2013,
- 2094, 2178, 2261, 2344, 2428, 2511, 2594, 2677,
- ],
- chunk: 42,
- frameRange: [840, 859],
- startDate: 1621618765001,
- },
- {
- timings: [
- 881, 981, 1085, 1195, 1279, 1361, 1444, 1546, 1642, 1727, 1809, 1893,
- 1976, 2064, 2160, 2245, 2326, 2409, 2492, 2577,
- ],
- chunk: 43,
- frameRange: [860, 879],
- startDate: 1621618761726,
- },
- {
- timings: [
- 954, 1087, 1193, 1304, 1385, 1469, 1553, 1654, 1769, 1853, 1934, 2018,
- 2101, 2185, 2269, 2354, 2434, 2518, 2601, 2685,
- ],
- chunk: 44,
- frameRange: [880, 899],
- startDate: 1621618765074,
- },
- {
- timings: [
- 971, 1117, 1228, 1350, 1448, 1532, 1616, 1740, 1866, 1950, 2048, 2131,
- 2231, 2332, 2416, 2517, 2615, 2714, 2797, 2882,
- ],
- chunk: 45,
- frameRange: [900, 919],
- startDate: 1621618765072,
- },
- {
- timings: [
- 997, 1141, 1248, 1374, 1455, 1539, 1621, 1727, 1856, 1938, 2037, 2121,
- 2206, 2309, 2389, 2474, 2571, 2671, 2754, 2839,
- ],
- chunk: 46,
- frameRange: [920, 939],
- startDate: 1621618765104,
- },
- {
- timings: [
- 1012, 1173, 1282, 1430, 1523, 1620, 1704, 1818, 1929, 2022, 2121, 2220,
- 2315, 2419, 2504, 2594, 2687, 2787, 2869, 2964,
- ],
- chunk: 47,
- frameRange: [940, 959],
- startDate: 1621618765216,
- },
- {
- timings: [
- 1046, 1182, 1298, 1408, 1490, 1573, 1658, 1761, 1873, 1973, 2056, 2160,
- 2256, 2356, 2440, 2533, 2640, 2740, 2823, 2907,
- ],
- chunk: 48,
- frameRange: [960, 979],
- startDate: 1621618765375,
- },
- {
- timings: [
- 947, 1084, 1183, 1293, 1374, 1456, 1540, 1644, 1774, 1857, 1939, 2022,
- 2106, 2189, 2275, 2363, 2475, 2594, 2689, 2775,
- ],
- chunk: 49,
- frameRange: [980, 999],
- startDate: 1621618765013,
- },
- {
- timings: [
- 954, 1087, 1200, 1303, 1415, 1512, 1613, 1730, 1812, 1896, 1981, 2080,
- 2163, 2263, 2367, 2462, 2562, 2666, 2763, 2863,
- ],
- chunk: 5,
- frameRange: [100, 119],
- startDate: 1621618765103,
- },
- {
- timings: [
- 947, 1081, 1192, 1296, 1381, 1462, 1545, 1655, 1762, 1845, 1927, 2012,
- 2094, 2178, 2261, 2346, 2427, 2512, 2594, 2677,
- ],
- chunk: 50,
- frameRange: [1000, 1019],
- startDate: 1621618765232,
- },
- {
- timings: [
- 945, 1098, 1201, 1330, 1429, 1529, 1630, 1771, 1896, 1997, 2096, 2180,
- 2279, 2379, 2483, 2581, 2679, 2779, 2860, 2946,
- ],
- chunk: 51,
- frameRange: [1020, 1039],
- startDate: 1621618765210,
- },
- {
- timings: [
- 927, 1081, 1186, 1312, 1399, 1495, 1577, 1698, 1812, 1910, 2011, 2098,
- 2193, 2293, 2377, 2465, 2560, 2643, 2725, 2809,
- ],
- chunk: 52,
- frameRange: [1040, 1059],
- startDate: 1621618765116,
- },
- {
- timings: [
- 997, 1142, 1254, 1374, 1458, 1557, 1656, 1778, 1906, 1989, 2089, 2173,
- 2273, 2393, 2475, 2578, 2693, 2788, 2872, 2972,
- ],
- chunk: 53,
- frameRange: [1060, 1079],
- startDate: 1621618764363,
- },
- {
- timings: [
- 966, 1115, 1218, 1345, 1443, 1543, 1643, 1770, 1892, 1992, 2089, 2174,
- 2256, 2339, 2430, 2507, 2590, 2674, 2761, 2862,
- ],
- chunk: 54,
- frameRange: [1080, 1099],
- startDate: 1621618765242,
- },
- {
- timings: [
- 1000, 1118, 1219, 1315, 1432, 1539, 1639, 1747, 1830, 1913, 1996, 2080,
- 2181, 2264, 2348, 2447, 2530, 2632, 2748, 2830,
- ],
- chunk: 55,
- frameRange: [1100, 1119],
- startDate: 1621618765566,
- },
- {
- timings: [
- 869, 989, 1072, 1169, 1287, 1373, 1469, 1569, 1652, 1735, 1818, 1902,
- 1985, 2068, 2156, 2235, 2318, 2403, 2503, 2585,
- ],
- chunk: 56,
- frameRange: [1120, 1139],
- startDate: 1621618765131,
- },
- {
- timings: [
- 866, 984, 1066, 1166, 1266, 1356, 1430, 1514, 1598, 1680, 1764, 1847,
- 1931, 2015, 2098, 2181, 2264, 2349, 2441, 2532,
- ],
- chunk: 57,
- frameRange: [1140, 1159],
- startDate: 1621618765078,
- },
- {
- timings: [
- 1016, 1271, 1501, 1735, 1982, 2233, 2466, 2732, 2964, 3215, 3450, 3700,
- 3951, 4216, 4467, 4731, 5033, 5299, 5566, 5853,
- ],
- chunk: 58,
- frameRange: [1160, 1179],
- startDate: 1621618765199,
- },
- {
- timings: [
- 1083, 1423, 1703, 2005, 2284, 2585, 2888, 3217, 3517, 3817, 4118, 4433,
- 4770, 5085, 5405, 5733, 6053, 6367, 6700, 7034,
- ],
- chunk: 59,
- frameRange: [1180, 1199],
- startDate: 1621618765311,
- },
- {
- timings: [
- 1056, 1197, 1323, 1476, 1637, 1736, 1832, 1937, 2018, 2118, 2217, 2299,
- 2384, 2468, 2555, 2657, 2751, 2850, 2934, 3033,
- ],
- chunk: 6,
- frameRange: [120, 139],
- startDate: 1621618765314,
- },
- {
- timings: [
- 1247, 1635, 1995, 2361, 2725, 3113, 3491, 3891, 4259, 4623, 5007, 5394,
- 5792, 6195, 6597, 7009, 7428, 7824, 8225, 8651,
- ],
- chunk: 60,
- frameRange: [1200, 1219],
- startDate: 1621618765367,
- },
- {
- timings: [
- 1164, 1567, 1965, 2366, 2746, 3147, 3547, 3979, 4378, 4763, 5146, 5545,
- 5927, 6345, 6730, 7112, 7515, 7930, 8413, 8897,
- ],
- chunk: 61,
- frameRange: [1220, 1239],
- startDate: 1621618765265,
- },
- {
- timings: [
- 1291, 1814, 2292, 2777, 3258, 3775, 4277, 4806, 5308, 5807, 6308, 6825,
- 7324, 7841, 8362, 8894, 9451, 9975, 10525, 11095,
- ],
- chunk: 62,
- frameRange: [1240, 1259],
- startDate: 1621618765197,
- },
- {
- timings: [
- 1354, 1927, 2474, 3021, 3586, 4138, 4703, 5286, 5871, 6436, 6986, 7552,
- 8119, 8703, 9290, 9852, 10439, 11019, 11586, 12170,
- ],
- chunk: 63,
- frameRange: [1260, 1279],
- startDate: 1621618765335,
- },
- {
- timings: [
- 1510, 2166, 2749, 3363, 3978, 4612, 5247, 5926, 6143, 6361, 6592, 6825,
- 7059, 7292, 7535, 7776, 8029, 8305, 8543, 8793,
- ],
- chunk: 64,
- frameRange: [1280, 1299],
- startDate: 1621618764984,
- },
- {
- timings: [
- 1148, 1451, 1715, 2000, 2262, 2548, 2851, 3162, 3429, 3695, 3980, 4264,
- 4565, 4862, 5151, 5462, 5766, 6062, 6362, 6680,
- ],
- chunk: 65,
- frameRange: [1300, 1319],
- startDate: 1621618765256,
- },
- {
- timings: [
- 1183, 1554, 1866, 2201, 2531, 2867, 3215, 3581, 3930, 4280, 4630, 4964,
- 5314, 5664, 6036, 6381, 6751, 7130, 7512, 7898,
- ],
- chunk: 66,
- frameRange: [1320, 1339],
- startDate: 1621618765052,
- },
- {
- timings: [
- 1088, 1421, 1673, 1960, 2221, 2507, 2805, 3139, 3438, 3753, 4072, 4407,
- 4738, 5088, 5442, 5803, 6172, 6557, 6971, 7388,
- ],
- chunk: 67,
- frameRange: [1340, 1359],
- startDate: 1621618765117,
- },
- {
- timings: [
- 1327, 1810, 2245, 2714, 3161, 3631, 4111, 4612, 5094, 5577, 6077, 6578,
- 7094, 7610, 8130, 8677, 9231, 9811, 10361, 10927,
- ],
- chunk: 68,
- frameRange: [1360, 1379],
- startDate: 1621618765020,
- },
- {
- timings: [
- 1439, 2087, 2689, 3291, 3905, 4558, 5190, 5855, 6505, 7171, 7839, 8589,
- 9323, 10055, 10742, 11438, 12160, 12873, 13605, 14361,
- ],
- chunk: 69,
- frameRange: [1380, 1399],
- startDate: 1621618764860,
- },
- {
- timings: [
- 1076, 1198, 1296, 1415, 1547, 1644, 1751, 1861, 1960, 2043, 2126, 2226,
- 2331, 2466, 2563, 2663, 2759, 2860, 2959, 3061,
- ],
- chunk: 7,
- frameRange: [140, 159],
- startDate: 1621618765287,
- },
- {
- timings: [
- 1699, 2464, 3213, 3980, 4744, 5534, 6327, 7162, 7994, 8843, 9661, 10533,
- 11378, 12227, 13098, 13943, 14781, 15628, 16528, 17429,
- ],
- chunk: 70,
- frameRange: [1400, 1419],
- startDate: 1621618764183,
- },
- {
- timings: [
- 1763, 2724, 3629, 4597, 5545, 6512, 7461, 8461, 9444, 10429, 11411, 12478,
- 13497, 14527, 15565, 16628, 17698, 18694, 19744, 20813,
- ],
- chunk: 71,
- frameRange: [1420, 1439],
- startDate: 1621618765266,
- },
- {
- timings: [
- 2054, 3227, 4363, 5495, 6642, 7812, 9093, 10312, 11510, 12693, 13910,
- 15111, 16325, 17531, 18763, 20010, 21248, 22509, 23760, 25044,
- ],
- chunk: 72,
- frameRange: [1440, 1459],
- startDate: 1621618765219,
- },
- {
- timings: [
- 2211, 3578, 4875, 6210, 7490, 8857, 10188, 11538, 11788, 12038, 12305,
- 12572, 12856, 13139, 13459, 13775, 14095, 14423, 14756, 15106,
- ],
- chunk: 73,
- frameRange: [1460, 1479],
- startDate: 1621618765463,
- },
- {
- timings: [
- 1229, 1638, 1996, 2379, 2763, 3163, 3579, 4011, 4410, 4811, 5244, 5679,
- 6127, 6577, 7031, 7510, 7996, 8527, 9043, 9544,
- ],
- chunk: 74,
- frameRange: [1480, 1499],
- startDate: 1621618765227,
- },
- {
- timings: [
- 1498, 2089, 2625, 3192, 3758, 4360, 4956, 5574, 6191, 6790, 7440, 8087,
- 8743, 9413, 10076, 10722, 11374, 12077, 12756, 13456,
- ],
- chunk: 75,
- frameRange: [1500, 1519],
- startDate: 1621618765060,
- },
- {
- timings: [
- 990, 1106, 1192, 1271, 1355, 1455, 1560, 1671, 1754, 1836, 1920, 2003,
- 2087, 2170, 2258, 2336, 2420, 2508, 2604, 2694,
- ],
- chunk: 76,
- frameRange: [1520, 1539],
- startDate: 1621618765229,
- },
- {
- timings: [
- 920, 1024, 1104, 1187, 1269, 1393, 1469, 1554, 1634, 1720, 1802, 1884,
- 1975, 2054, 2139, 2218, 2303, 2406, 2486, 2584,
- ],
- chunk: 77,
- frameRange: [1540, 1559],
- startDate: 1621618765262,
- },
- {
- timings: [
- 920, 1022, 1104, 1186, 1272, 1388, 1471, 1553, 1636, 1719, 1806, 1888,
- 1971, 2053, 2137, 2220, 2305, 2393, 2473, 2552,
- ],
- chunk: 78,
- frameRange: [1560, 1579],
- startDate: 1621618765296,
- },
- {
- timings: [
- 891, 995, 1077, 1166, 1242, 1349, 1425, 1509, 1592, 1675, 1759, 1841,
- 1926, 2009, 2095, 2175, 2260, 2341, 2428, 2526,
- ],
- chunk: 79,
- frameRange: [1580, 1599],
- startDate: 1621618764919,
- },
- {
- timings: [
- 983, 1101, 1200, 1283, 1384, 1486, 1608, 1705, 1810, 1900, 1987, 2090,
- 2236, 2338, 2437, 2519, 2601, 2700, 2787, 2866,
- ],
- chunk: 8,
- frameRange: [160, 179],
- startDate: 1621618765234,
- },
- {
- timings: [
- 1016, 1131, 1213, 1299, 1395, 1513, 1610, 1718, 1811, 1894, 1977, 2062,
- 2147, 2227, 2314, 2394, 2477, 2560, 2647, 2728,
- ],
- chunk: 80,
- frameRange: [1600, 1619],
- startDate: 1621618765115,
- },
- {
- timings: [
- 917, 1018, 1101, 1185, 1286, 1405, 1483, 1569, 1650, 1735, 1818, 1900,
- 1983, 2068, 2151, 2237, 2334, 2417, 2526, 2616,
- ],
- chunk: 81,
- frameRange: [1620, 1639],
- startDate: 1621618765114,
- },
- {
- timings: [
- 953, 1052, 1135, 1234, 1333, 1416, 1500, 1602, 1682, 1786, 1866, 1949,
- 2032, 2116, 2203, 2283, 2366, 2449, 2538, 2616,
- ],
- chunk: 82,
- frameRange: [1640, 1659],
- startDate: 1621618765180,
- },
- {
- timings: [
- 880, 985, 1067, 1148, 1249, 1331, 1431, 1514, 1597, 1681, 1766, 1847,
- 1934, 2015, 2099, 2182, 2265, 2348, 2430, 2515,
- ],
- chunk: 83,
- frameRange: [1660, 1679],
- startDate: 1621618764974,
- },
- {
- timings: [
- 925, 1038, 1123, 1219, 1336, 1437, 1517, 1618, 1701, 1785, 1867, 1953,
- 2035, 2117, 2205, 2285, 2367, 2451, 2534, 2640,
- ],
- chunk: 84,
- frameRange: [1680, 1699],
- startDate: 1621618765178,
- },
- {
- timings: [
- 899, 1001, 1083, 1184, 1298, 1381, 1464, 1565, 1647, 1731, 1814, 1897,
- 1984, 2064, 2148, 2231, 2332, 2414, 2498, 2582,
- ],
- chunk: 85,
- frameRange: [1700, 1719],
- startDate: 1621618761665,
- },
- {
- timings: [
- 890, 998, 1105, 1208, 1289, 1372, 1473, 1573, 1656, 1739, 1822, 1908,
- 2005, 2089, 2181, 2273, 2355, 2445, 2522, 2604,
- ],
- chunk: 86,
- frameRange: [1720, 1739],
- startDate: 1621618764902,
- },
- {
- timings: [
- 1017, 1137, 1240, 1355, 1452, 1535, 1618, 1719, 1804, 1901, 1985, 2069,
- 2151, 2235, 2337, 2418, 2501, 2587, 2685, 2768,
- ],
- chunk: 87,
- frameRange: [1740, 1759],
- startDate: 1621618764976,
- },
- {
- timings: [
- 948, 1060, 1163, 1278, 1376, 1475, 1557, 1658, 1743, 1840, 1923, 2007,
- 2090, 2174, 2277, 2357, 2440, 2544, 2640, 2723,
- ],
- chunk: 88,
- frameRange: [1760, 1779],
- startDate: 1621618765306,
- },
- {
- timings: [
- 897, 997, 1103, 1197, 1296, 1378, 1462, 1545, 1636, 1729, 1814, 1895,
- 1981, 2063, 2163, 2246, 2329, 2416, 2511, 2596,
- ],
- chunk: 89,
- frameRange: [1780, 1799],
- startDate: 1621618765007,
- },
- {
- timings: [
- 995, 1212, 1412, 1613, 1812, 2020, 2236, 2445, 2645, 2845, 3044, 3245,
- 3448, 3645, 3846, 4045, 4246, 4444, 4645, 4846,
- ],
- chunk: 9,
- frameRange: [180, 199],
- startDate: 1621618765147,
- },
- {
- timings: [
- 951, 1063, 1166, 1263, 1361, 1444, 1527, 1627, 1715, 1811, 1911, 1993,
- 2076, 2160, 2261, 2343, 2426, 2512, 2610, 2693,
- ],
- chunk: 90,
- frameRange: [1800, 1819],
- startDate: 1621618765155,
- },
- {
- timings: [
- 866, 969, 1055, 1149, 1232, 1316, 1400, 1499, 1584, 1668, 1748, 1832,
- 1916, 1999, 2106, 2182, 2265, 2350, 2433, 2512,
- ],
- chunk: 91,
- frameRange: [1820, 1839],
- startDate: 1621618765193,
- },
- {
- timings: [
- 1001, 1115, 1214, 1313, 1396, 1478, 1562, 1684, 1779, 1861, 1945, 2029,
- 2113, 2194, 2279, 2372, 2470, 2562, 2645, 2745,
- ],
- chunk: 92,
- frameRange: [1840, 1859],
- startDate: 1621618765016,
- },
- {
- timings: [
- 869, 970, 1070, 1169, 1254, 1337, 1419, 1522, 1602, 1686, 1772, 1854,
- 1937, 2019, 2103, 2187, 2271, 2368, 2453, 2552,
- ],
- chunk: 93,
- frameRange: [1860, 1879],
- startDate: 1621618765246,
- },
- {
- timings: [
- 844, 925, 1042, 1142, 1242, 1325, 1409, 1511, 1609, 1693, 1776, 1860,
- 1959, 2042, 2127, 2214, 2311, 2409, 2494, 2594,
- ],
- chunk: 94,
- frameRange: [1880, 1899],
- startDate: 1621618761631,
- },
- {
- timings: [
- 840, 957, 1057, 1157, 1256, 1338, 1422, 1525, 1607, 1689, 1773, 1860,
- 1940, 2022, 2106, 2196, 2291, 2393, 2474, 2586,
- ],
- chunk: 95,
- frameRange: [1900, 1919],
- startDate: 1621618761633,
- },
- {
- timings: [
- 946, 1050, 1148, 1264, 1347, 1430, 1515, 1620, 1713, 1796, 1879, 1966,
- 2053, 2146, 2233, 2321, 2421, 2513, 2598, 2715,
- ],
- chunk: 96,
- frameRange: [1920, 1939],
- startDate: 1621618765114,
- },
- {
- timings: [
- 904, 1012, 1107, 1225, 1327, 1407, 1490, 1593, 1694, 1775, 1883, 2000,
- 2092, 2173, 2262, 2348, 2446, 2540, 2625, 2727,
- ],
- chunk: 97,
- frameRange: [1940, 1959],
- startDate: 1621618765151,
- },
- {
- timings: [
- 901, 1016, 1113, 1248, 1346, 1429, 1514, 1621, 1730, 1829, 1912, 1995,
- 2081, 2178, 2263, 2353, 2448, 2545, 2649, 2748,
- ],
- chunk: 98,
- frameRange: [1960, 1979],
- startDate: 1621618764947,
- },
- {
- timings: [
- 921, 1022, 1124, 1239, 1337, 1442, 1541, 1661, 1755, 1837, 1920, 2008,
- 2089, 2170, 2258, 2345, 2445, 2538, 2626, 2739,
- ],
- chunk: 99,
- frameRange: [1980, 1999],
- startDate: 1621618765242,
- },
-];
diff --git a/packages/lambda/src/test/demo-profile.ts b/packages/lambda/src/test/demo-profile.ts
deleted file mode 100644
index 211f189cd5..0000000000
--- a/packages/lambda/src/test/demo-profile.ts
+++ /dev/null
@@ -1,1327 +0,0 @@
-import type {TimingProfile} from '../functions/chunk-optimization/types';
-
-export const demoProfiles: TimingProfile = [
- {
- timings: [
- 908, 1021, 1137, 1243, 1336, 1454, 1536, 1628, 1735, 1819, 1902, 1985,
- 2069, 2152, 2252, 2337, 2419, 2502, 2603, 2705,
- ],
- chunk: 0,
- frameRange: [0, 19],
- startDate: 1621613720891,
- },
- {
- timings: [
- 951, 1062, 1163, 1263, 1378, 1461, 1545, 1645, 1728, 1809, 1893, 1979,
- 2079, 2177, 2284, 2378, 2478, 2579, 2678, 2777,
- ],
- chunk: 1,
- frameRange: [20, 39],
- startDate: 1621613720906,
- },
- {
- timings: [
- 985, 1218, 1420, 1638, 1835, 2069, 2291, 2500, 2700, 2900, 3101, 3301,
- 3507, 3717, 3938, 4150, 4371, 4583, 4784, 5001,
- ],
- chunk: 10,
- frameRange: [200, 219],
- startDate: 1621613720716,
- },
- {
- timings: [
- 906, 1008, 1107, 1223, 1311, 1405, 1488, 1595, 1689, 1826, 1906, 1995,
- 2075, 2155, 2242, 2331, 2431, 2522, 2607, 2707,
- ],
- chunk: 100,
- frameRange: [2000, 2019],
- startDate: 1621613720881,
- },
- {
- timings: [
- 915, 1037, 1152, 1265, 1364, 1447, 1549, 1668, 1767, 1860, 1944, 2028,
- 2129, 2209, 2299, 2379, 2478, 2576, 2660, 2743,
- ],
- chunk: 101,
- frameRange: [2020, 2039],
- startDate: 1621613720929,
- },
- {
- timings: [
- 990, 1109, 1208, 1337, 1423, 1506, 1589, 1682, 1774, 1856, 1939, 2027,
- 2107, 2189, 2274, 2388, 2479, 2555, 2640, 2745,
- ],
- chunk: 102,
- frameRange: [2040, 2059],
- startDate: 1621613720801,
- },
- {
- timings: [
- 1008, 1133, 1233, 1349, 1449, 1532, 1615, 1718, 1814, 1897, 1981, 2065,
- 2150, 2248, 2355, 2458, 2550, 2648, 2732, 2832,
- ],
- chunk: 103,
- frameRange: [2060, 2079],
- startDate: 1621613721082,
- },
- {
- timings: [
- 812, 918, 998, 1081, 1165, 1272, 1365, 1447, 1529, 1614, 1699, 1781, 1883,
- 1965, 2048, 2130, 2213, 2298, 2380, 2464,
- ],
- chunk: 104,
- frameRange: [2080, 2099],
- startDate: 1621613720895,
- },
- {
- timings: [
- 881, 983, 1079, 1167, 1251, 1339, 1434, 1516, 1633, 1716, 1799, 1882,
- 1973, 2054, 2138, 2215, 2298, 2382, 2465, 2549,
- ],
- chunk: 105,
- frameRange: [2100, 2119],
- startDate: 1621613720916,
- },
- {
- timings: [
- 929, 1044, 1126, 1232, 1326, 1427, 1543, 1639, 1723, 1807, 1891, 1973,
- 2060, 2142, 2224, 2309, 2390, 2491, 2595, 2726,
- ],
- chunk: 106,
- frameRange: [2120, 2139],
- startDate: 1621613721067,
- },
- {
- timings: [
- 1031, 1142, 1232, 1322, 1423, 1525, 1641, 1740, 1822, 1905, 1991, 2071,
- 2156, 2240, 2341, 2421, 2508, 2589, 2673, 2755,
- ],
- chunk: 107,
- frameRange: [2140, 2159],
- startDate: 1621613720843,
- },
- {
- timings: [
- 912, 1027, 1125, 1226, 1314, 1416, 1524, 1624, 1707, 1791, 1877, 1957,
- 2043, 2142, 2230, 2324, 2407, 2495, 2598, 2677,
- ],
- chunk: 108,
- frameRange: [2160, 2179],
- startDate: 1621613721158,
- },
- {
- timings: [
- 889, 1013, 1095, 1173, 1269, 1373, 1456, 1538, 1622, 1705, 1789, 1872,
- 1956, 2039, 2143, 2223, 2311, 2390, 2472, 2556,
- ],
- chunk: 109,
- frameRange: [2180, 2199],
- startDate: 1621613720745,
- },
- {
- timings: [
- 993, 1112, 1195, 1294, 1376, 1498, 1597, 1697, 1797, 1882, 1965, 2066,
- 2151, 2269, 2373, 2469, 2568, 2668, 2767, 2867,
- ],
- chunk: 11,
- frameRange: [220, 239],
- startDate: 1621613721004,
- },
- {
- timings: [
- 932, 1045, 1130, 1226, 1316, 1425, 1525, 1625, 1708, 1790, 1877, 1958,
- 2041, 2124, 2212, 2292, 2376, 2458, 2541, 2624,
- ],
- chunk: 110,
- frameRange: [2200, 2219],
- startDate: 1621613721112,
- },
- {
- timings: [
- 883, 986, 1072, 1154, 1238, 1335, 1418, 1501, 1584, 1667, 1754, 1834,
- 1918, 2001, 2086, 2168, 2254, 2335, 2418, 2519,
- ],
- chunk: 111,
- frameRange: [2220, 2239],
- startDate: 1621613721081,
- },
- {
- timings: [
- 1006, 1121, 1209, 1307, 1403, 1519, 1601, 1702, 1784, 1870, 1953, 2035,
- 2119, 2205, 2307, 2402, 2486, 2570, 2653, 2751,
- ],
- chunk: 112,
- frameRange: [2240, 2259],
- startDate: 1621613721092,
- },
- {
- timings: [
- 1018, 1127, 1212, 1345, 1445, 1562, 1646, 1748, 1828, 1928, 2012, 2118,
- 2229, 2329, 2418, 2512, 2596, 2713, 2795, 2912,
- ],
- chunk: 113,
- frameRange: [2260, 2279],
- startDate: 1621613721657,
- },
- {
- timings: [
- 1031, 1150, 1253, 1365, 1463, 1578, 1681, 1779, 1860, 1945, 2028, 2128,
- 2213, 2313, 2399, 2495, 2598, 2694, 2778, 2879,
- ],
- chunk: 114,
- frameRange: [2280, 2299],
- startDate: 1621613721688,
- },
- {
- timings: [
- 1001, 1134, 1233, 1346, 1482, 1596, 1679, 1779, 1862, 1945, 2045, 2145,
- 2229, 2312, 2400, 2499, 2581, 2685, 2779, 2878,
- ],
- chunk: 115,
- frameRange: [2300, 2319],
- startDate: 1621613721180,
- },
- {
- timings: [
- 912, 1033, 1135, 1230, 1330, 1428, 1511, 1628, 1712, 1795, 1927, 2011,
- 2093, 2177, 2262, 2342, 2427, 2513, 2614, 2693,
- ],
- chunk: 116,
- frameRange: [2320, 2339],
- startDate: 1621613721086,
- },
- {
- timings: [
- 662, 795, 878, 991, 1091, 1208, 1290, 1380, 1456, 1542, 1626, 1728, 1826,
- 1924, 2007, 2089, 2173, 2257, 2345, 2440,
- ],
- chunk: 117,
- frameRange: [2340, 2359],
- startDate: 1621613721371,
- },
- {
- timings: [
- 981, 1085, 1167, 1249, 1349, 1448, 1552, 1651, 1732, 1816, 1900, 1982,
- 2065, 2186, 2266, 2348, 2432, 2515, 2607, 2703,
- ],
- chunk: 118,
- frameRange: [2360, 2379],
- startDate: 1621613721022,
- },
- {
- timings: [
- 1001, 1117, 1203, 1297, 1413, 1514, 1600, 1712, 1797, 1880, 1962, 2048,
- 2131, 2213, 2317, 2398, 2481, 2563, 2652, 2747,
- ],
- chunk: 119,
- frameRange: [2380, 2399],
- startDate: 1621613720970,
- },
- {
- timings: [
- 979, 1099, 1219, 1311, 1396, 1519, 1653, 1763, 1847, 1948, 2046, 2145,
- 2230, 2329, 2433, 2530, 2630, 2730, 2830, 2930,
- ],
- chunk: 12,
- frameRange: [240, 259],
- startDate: 1621613721066,
- },
- {
- timings: [
- 931, 1030, 1119, 1214, 1314, 1413, 1499, 1596, 1682, 1765, 1847, 1930,
- 2034, 2116, 2201, 2282, 2363, 2447, 2539, 2631,
- ],
- chunk: 120,
- frameRange: [2400, 2419],
- startDate: 1621613721145,
- },
- {
- timings: [
- 908, 1011, 1094, 1176, 1327, 1431, 1511, 1593, 1676, 1759, 1842, 1931,
- 2014, 2092, 2177, 2259, 2342, 2426, 2510, 2610,
- ],
- chunk: 121,
- frameRange: [2420, 2439],
- startDate: 1621613720915,
- },
- {
- timings: [
- 1003, 1121, 1215, 1317, 1414, 1541, 1640, 1762, 1850, 1930, 2013, 2096,
- 2182, 2263, 2347, 2430, 2541, 2646, 2731, 2831,
- ],
- chunk: 122,
- frameRange: [2440, 2459],
- startDate: 1621613721132,
- },
- {
- timings: [
- 1026, 1142, 1245, 1339, 1422, 1531, 1606, 1693, 1773, 1859, 1939, 2021,
- 2110, 2207, 2291, 2373, 2455, 2538, 2622, 2706,
- ],
- chunk: 123,
- frameRange: [2460, 2479],
- startDate: 1621613721093,
- },
- {
- timings: [
- 1000, 1117, 1213, 1313, 1413, 1517, 1614, 1713, 1795, 1879, 1982, 2080,
- 2165, 2246, 2340, 2431, 2513, 2595, 2679, 2763,
- ],
- chunk: 124,
- frameRange: [2480, 2499],
- startDate: 1621613721091,
- },
- {
- timings: [
- 947, 1049, 1132, 1231, 1314, 1406, 1481, 1564, 1647, 1731, 1852, 1936,
- 2014, 2098, 2217, 2299, 2383, 2466, 2551, 2633,
- ],
- chunk: 125,
- frameRange: [2500, 2519],
- startDate: 1621613720928,
- },
- {
- timings: [
- 919, 1053, 1155, 1249, 1332, 1450, 1566, 1665, 1748, 1831, 1915, 1997,
- 2081, 2164, 2251, 2331, 2414, 2499, 2581, 2665,
- ],
- chunk: 126,
- frameRange: [2520, 2539],
- startDate: 1621613721185,
- },
- {
- timings: [
- 907, 1027, 1108, 1190, 1274, 1395, 1490, 1591, 1673, 1756, 1839, 1939,
- 2024, 2107, 2192, 2290, 2372, 2457, 2540, 2623,
- ],
- chunk: 127,
- frameRange: [2540, 2559],
- startDate: 1621613720708,
- },
- {
- timings: [
- 1037, 1170, 1272, 1368, 1471, 1587, 1684, 1784, 1869, 1951, 2034, 2118,
- 2199, 2283, 2370, 2467, 2568, 2651, 2735, 2818,
- ],
- chunk: 128,
- frameRange: [2560, 2579],
- startDate: 1621613720882,
- },
- {
- timings: [
- 991, 1108, 1191, 1272, 1353, 1481, 1571, 1669, 1752, 1837, 1921, 2003,
- 2086, 2170, 2257, 2352, 2438, 2519, 2602, 2687,
- ],
- chunk: 129,
- frameRange: [2580, 2599],
- startDate: 1621613720851,
- },
- {
- timings: [
- 1206, 1338, 1453, 1567, 1686, 1821, 1934, 2049, 2152, 2249, 2384, 2484,
- 2584, 2684, 2792, 2899, 3017, 3116, 3216, 3317,
- ],
- chunk: 13,
- frameRange: [260, 279],
- startDate: 1621613720943,
- },
- {
- timings: [
- 1215, 1332, 1431, 1528, 1613, 1732, 1831, 1931, 2027, 2129, 2232, 2329,
- 2411, 2495, 2581, 2680, 2762, 2862, 2945, 3028,
- ],
- chunk: 130,
- frameRange: [2600, 2619],
- startDate: 1621613721337,
- },
- {
- timings: [
- 917, 1037, 1121, 1200, 1305, 1420, 1520, 1618, 1703, 1784, 1867, 1950,
- 2035, 2118, 2220, 2318, 2418, 2501, 2584, 2671,
- ],
- chunk: 131,
- frameRange: [2620, 2639],
- startDate: 1621613721153,
- },
- {
- timings: [
- 1051, 1201, 1319, 1445, 1542, 1624, 1725, 1896, 1975, 2064, 2178, 2257,
- 2341, 2423, 2524, 2606, 2690, 2773, 2860, 2957,
- ],
- chunk: 132,
- frameRange: [2640, 2659],
- startDate: 1621613720943,
- },
- {
- timings: [
- 1078, 1197, 1293, 1411, 1506, 1592, 1700, 1830, 1924, 2033, 2166, 2292,
- 2390, 2503, 2610, 2723, 2824, 2943, 3040, 3157,
- ],
- chunk: 133,
- frameRange: [2660, 2679],
- startDate: 1621613720928,
- },
- {
- timings: [
- 916, 1056, 1169, 1306, 1416, 1517, 1618, 1751, 1852, 1953, 2070, 2218,
- 2318, 2418, 2525, 2635, 2753, 2868, 2968, 3086,
- ],
- chunk: 134,
- frameRange: [2680, 2699],
- startDate: 1621613720690,
- },
- {
- timings: [
- 1903, 2232, 2521, 2751, 2944, 3085, 3244, 3477, 3602, 3746, 3914, 4083,
- 4227, 4365, 4579, 4737, 4940, 5154, 5284, 5397,
- ],
- chunk: 135,
- frameRange: [2700, 2719],
- startDate: 1621613722377,
- },
- {
- timings: [
- 1016, 1233, 1392, 1538, 1666, 1785, 1901, 2032, 2149, 2265, 2385, 2534,
- 2650, 2766, 2887, 2998, 3154, 3265, 3400, 3516,
- ],
- chunk: 136,
- frameRange: [2720, 2739],
- startDate: 1621613721180,
- },
- {
- timings: [
- 1002, 1154, 1288, 1442, 1584, 1688, 1819, 1953, 2070, 2184, 2308, 2436,
- 2534, 2651, 2754, 2867, 2968, 3067, 3170, 3284,
- ],
- chunk: 137,
- frameRange: [2740, 2759],
- startDate: 1621613720837,
- },
- {
- timings: [
- 905, 1061, 1176, 1312, 1422, 1538, 1641, 1779, 1872, 1971, 2077, 2206,
- 2305, 2405, 2518, 2622, 2722, 2823, 2922, 3022,
- ],
- chunk: 138,
- frameRange: [2760, 2779],
- startDate: 1621613720792,
- },
- {
- timings: [
- 919, 1056, 1171, 1309, 1419, 1518, 1620, 1752, 1851, 1952, 2053, 2186,
- 2285, 2402, 2523, 2618, 2718, 2818, 2918, 3020,
- ],
- chunk: 139,
- frameRange: [2780, 2799],
- startDate: 1621613720791,
- },
- {
- timings: [
- 1198, 1361, 1466, 1581, 1698, 1835, 1947, 2072, 2164, 2263, 2401, 2531,
- 2638, 2804, 2969, 3060, 3159, 3281, 3392, 3496,
- ],
- chunk: 14,
- frameRange: [280, 299],
- startDate: 1621613721153,
- },
- {
- timings: [
- 883, 999, 1116, 1270, 1380, 1480, 1580, 1712, 1813, 1915, 2033, 2162,
- 2297, 2396, 2507, 2596, 2696, 2798, 2895, 2996,
- ],
- chunk: 140,
- frameRange: [2800, 2819],
- startDate: 1621613717583,
- },
- {
- timings: [
- 914, 1068, 1179, 1335, 1443, 1542, 1645, 1776, 1876, 1975, 2082, 2210,
- 2309, 2409, 2518, 2607, 2707, 2807, 2908, 3009,
- ],
- chunk: 141,
- frameRange: [2820, 2839],
- startDate: 1621613720976,
- },
- {
- timings: [
- 994, 1143, 1277, 1429, 1538, 1639, 1741, 1873, 1975, 2073, 2201, 2339,
- 2438, 2555, 2661, 2790, 2890, 2988, 3126, 3238,
- ],
- chunk: 142,
- frameRange: [2840, 2859],
- startDate: 1621613721178,
- },
- {
- timings: [
- 952, 1097, 1225, 1366, 1472, 1573, 1679, 1808, 1905, 2005, 2110, 2240,
- 2338, 2439, 2554, 2656, 2755, 2855, 2956, 3057,
- ],
- chunk: 143,
- frameRange: [2860, 2879],
- startDate: 1621613720959,
- },
- {
- timings: [
- 950, 1084, 1216, 1354, 1463, 1564, 1664, 1779, 1880, 1980, 2082, 2215,
- 2313, 2414, 2518, 2613, 2714, 2813, 2913, 3013,
- ],
- chunk: 144,
- frameRange: [2880, 2899],
- startDate: 1621613720638,
- },
- {
- timings: [
- 857, 975, 1109, 1260, 1413, 1524, 1624, 1739, 1840, 1945, 2062, 2189,
- 2291, 2391, 2497, 2605, 2718, 2823, 2922, 3041,
- ],
- chunk: 145,
- frameRange: [2900, 2919],
- startDate: 1621613717474,
- },
- {
- timings: [
- 993, 1140, 1270, 1417, 1533, 1661, 1766, 1899, 2015, 2097, 2180, 2263,
- 2363, 2449,
- ],
- chunk: 146,
- frameRange: [2920, 2933],
- startDate: 1621613720947,
- },
- {
- timings: [
- 944, 1063, 1147, 1230, 1314, 1414, 1539, 1650, 1729, 1812, 1932, 2012,
- 2099, 2181, 2266, 2348, 2428, 2521, 2613, 2695,
- ],
- chunk: 15,
- frameRange: [300, 319],
- startDate: 1621613721090,
- },
- {
- timings: [
- 933, 1015, 1100, 1183, 1266, 1371, 1472, 1564, 1647, 1732, 1819, 1920,
- 2019, 2098, 2185, 2268, 2348, 2431, 2514, 2600,
- ],
- chunk: 16,
- frameRange: [320, 339],
- startDate: 1621613717501,
- },
- {
- timings: [
- 1046, 1162, 1263, 1362, 1463, 1566, 1681, 1794, 1893, 1995, 2074, 2159,
- 2250, 2341, 2424, 2509, 2597, 2710, 2793, 2893,
- ],
- chunk: 17,
- frameRange: [340, 359],
- startDate: 1621613721029,
- },
- {
- timings: [
- 1026, 1139, 1239, 1341, 1456, 1554, 1638, 1738, 1821, 1904, 1990, 2072,
- 2170, 2258, 2338, 2438, 2528, 2621, 2722, 2805,
- ],
- chunk: 18,
- frameRange: [360, 379],
- startDate: 1621613721057,
- },
- {
- timings: [
- 870, 970, 1057, 1161, 1270, 1352, 1456, 1553, 1636, 1719, 1803, 1886,
- 1969, 2069, 2157, 2252, 2341, 2435, 2536, 2619,
- ],
- chunk: 19,
- frameRange: [380, 399],
- startDate: 1621613720932,
- },
- {
- timings: [
- 879, 1005, 1094, 1200, 1310, 1394, 1477, 1587, 1676, 1764, 1844, 1927,
- 2030, 2127, 2214, 2292, 2394, 2479, 2572, 2661,
- ],
- chunk: 2,
- frameRange: [40, 59],
- startDate: 1621613720766,
- },
- {
- timings: [
- 855, 977, 1090, 1200, 1309, 1406, 1488, 1593, 1671, 1755, 1841, 1939,
- 2021, 2105, 2192, 2271, 2394, 2487, 2588, 2670,
- ],
- chunk: 20,
- frameRange: [400, 419],
- startDate: 1621613720943,
- },
- {
- timings: [
- 1012, 1138, 1255, 1394, 1504, 1603, 1704, 1837, 1936, 2051, 2140, 2235,
- 2363, 2472, 2572, 2667, 2768, 2883, 3002, 3100,
- ],
- chunk: 21,
- frameRange: [420, 439],
- startDate: 1621613721440,
- },
- {
- timings: [
- 1045, 1163, 1245, 1327, 1409, 1492, 1599, 1692, 1776, 1859, 1943, 2025,
- 2109, 2191, 2277, 2358, 2443, 2525, 2609, 2692,
- ],
- chunk: 22,
- frameRange: [440, 459],
- startDate: 1621613721343,
- },
- {
- timings: [
- 860, 960, 1043, 1127, 1208, 1291, 1395, 1477, 1557, 1642, 1726, 1808,
- 1893, 1975, 2059, 2143, 2224, 2308, 2391, 2476,
- ],
- chunk: 23,
- frameRange: [460, 479],
- startDate: 1621613720918,
- },
- {
- timings: [
- 931, 1035, 1121, 1200, 1283, 1365, 1450, 1538, 1616, 1698, 1782, 1866,
- 1950, 2049, 2133, 2215, 2315, 2414, 2498, 2616,
- ],
- chunk: 24,
- frameRange: [480, 499],
- startDate: 1621613721083,
- },
- {
- timings: [
- 885, 1016, 1123, 1240, 1353, 1471, 1554, 1668, 1752, 1835, 1935, 2035,
- 2135, 2234, 2339, 2452, 2551, 2670, 2770, 2871,
- ],
- chunk: 25,
- frameRange: [500, 519],
- startDate: 1621613721061,
- },
- {
- timings: [
- 871, 1012, 1110, 1223, 1322, 1422, 1529, 1655, 1738, 1822, 1905, 1988,
- 2089, 2172, 2275, 2372, 2455, 2538, 2621, 2705,
- ],
- chunk: 26,
- frameRange: [520, 539],
- startDate: 1621613721127,
- },
- {
- timings: [
- 911, 1028, 1130, 1232, 1345, 1443, 1526, 1626, 1709, 1793, 1877, 1960,
- 2094, 2176, 2264, 2360, 2444, 2526, 2609, 2693,
- ],
- chunk: 27,
- frameRange: [540, 559],
- startDate: 1621613721083,
- },
- {
- timings: [
- 883, 1002, 1106, 1225, 1334, 1417, 1500, 1600, 1683, 1766, 1849, 1933,
- 2016, 2099, 2188, 2266, 2349, 2433, 2516, 2600,
- ],
- chunk: 28,
- frameRange: [560, 579],
- startDate: 1621613720912,
- },
- {
- timings: [
- 933, 1049, 1133, 1249, 1362, 1462, 1545, 1646, 1728, 1812, 1897, 1979,
- 2062, 2145, 2232, 2329, 2413, 2496, 2579, 2663,
- ],
- chunk: 29,
- frameRange: [580, 599],
- startDate: 1621613720815,
- },
- {
- timings: [
- 873, 997, 1090, 1195, 1305, 1389, 1473, 1590, 1673, 1757, 1841, 1923,
- 2006, 2121, 2214, 2306, 2392, 2475, 2573, 2656,
- ],
- chunk: 3,
- frameRange: [60, 79],
- startDate: 1621613720720,
- },
- {
- timings: [
- 930, 1048, 1148, 1249, 1343, 1442, 1526, 1626, 1709, 1793, 1893, 1976,
- 2076, 2159, 2246, 2343, 2425, 2509, 2593, 2676,
- ],
- chunk: 30,
- frameRange: [600, 619],
- startDate: 1621613721111,
- },
- {
- timings: [
- 913, 1049, 1154, 1252, 1364, 1463, 1546, 1646, 1731, 1812, 1897, 1979,
- 2062, 2145, 2232, 2313, 2395, 2479, 2562, 2647,
- ],
- chunk: 31,
- frameRange: [620, 639],
- startDate: 1621613721100,
- },
- {
- timings: [
- 922, 1050, 1156, 1253, 1352, 1449, 1549, 1648, 1730, 1831, 1914, 1998,
- 2081, 2165, 2253, 2349, 2431, 2515, 2598, 2682,
- ],
- chunk: 32,
- frameRange: [640, 659],
- startDate: 1621613720988,
- },
- {
- timings: [
- 907, 1046, 1144, 1241, 1323, 1406, 1491, 1595, 1698, 1798, 1877, 1956,
- 2039, 2124, 2210, 2289, 2376, 2474, 2556, 2640,
- ],
- chunk: 33,
- frameRange: [660, 679],
- startDate: 1621613720937,
- },
- {
- timings: [
- 974, 1110, 1211, 1326, 1406, 1489, 1574, 1674, 1774, 1878, 1955, 2038,
- 2123, 2205, 2309, 2388, 2473, 2572, 2675, 2755,
- ],
- chunk: 34,
- frameRange: [680, 699],
- startDate: 1621613720945,
- },
- {
- timings: [
- 974, 1130, 1231, 1341, 1423, 1508, 1592, 1708, 1792, 1909, 1990, 2073,
- 2157, 2242, 2330, 2406, 2490, 2590, 2673, 2757,
- ],
- chunk: 35,
- frameRange: [700, 719],
- startDate: 1621613720899,
- },
- {
- timings: [
- 990, 1117, 1237, 1357, 1440, 1525, 1607, 1707, 1794, 1897, 1989, 2072,
- 2156, 2242, 2323, 2406, 2496, 2594, 2671, 2758,
- ],
- chunk: 36,
- frameRange: [720, 739],
- startDate: 1621613720947,
- },
- {
- timings: [
- 917, 1033, 1150, 1262, 1346, 1429, 1513, 1614, 1729, 1869, 1966, 2044,
- 2128, 2212, 2295, 2379, 2462, 2611, 2703, 2796,
- ],
- chunk: 37,
- frameRange: [740, 759],
- startDate: 1621613717482,
- },
- {
- timings: [
- 945, 1093, 1226, 1327, 1411, 1494, 1579, 1678, 1773, 1862, 1943, 2027,
- 2113, 2195, 2298, 2394, 2478, 2594, 2677, 2762,
- ],
- chunk: 38,
- frameRange: [760, 779],
- startDate: 1621613721343,
- },
- {
- timings: [
- 950, 1089, 1209, 1317, 1417, 1501, 1585, 1685, 1788, 1886, 1984, 2066,
- 2149, 2235, 2336, 2416, 2500, 2617, 2699, 2784,
- ],
- chunk: 39,
- frameRange: [780, 799],
- startDate: 1621613720889,
- },
- {
- timings: [
- 951, 1072, 1180, 1286, 1394, 1478, 1561, 1684, 1778, 1881, 1980, 2082,
- 2178, 2278, 2380, 2477, 2577, 2680, 2778, 2878,
- ],
- chunk: 4,
- frameRange: [80, 99],
- startDate: 1621613720677,
- },
- {
- timings: [
- 978, 1131, 1249, 1356, 1454, 1538, 1624, 1723, 1823, 1929, 2022, 2104,
- 2187, 2289, 2389, 2472, 2553, 2671, 2755, 2840,
- ],
- chunk: 40,
- frameRange: [800, 819],
- startDate: 1621613720988,
- },
- {
- timings: [
- 811, 924, 1030, 1127, 1210, 1293, 1377, 1478, 1560, 1661, 1763, 1844,
- 1927, 2012, 2094, 2176, 2262, 2362, 2442, 2526,
- ],
- chunk: 41,
- frameRange: [820, 839],
- startDate: 1621613717427,
- },
- {
- timings: [
- 1016, 1185, 1298, 1409, 1509, 1592, 1679, 1779, 1899, 2014, 2124, 2224,
- 2307, 2407, 2494, 2574, 2674, 2774, 2858, 2941,
- ],
- chunk: 42,
- frameRange: [840, 859],
- startDate: 1621613720803,
- },
- {
- timings: [
- 1078, 1230, 1332, 1461, 1557, 1669, 1775, 1897, 2005, 2089, 2189, 2272,
- 2355, 2439, 2524, 2608, 2705, 2806, 2891, 2999,
- ],
- chunk: 43,
- frameRange: [860, 879],
- startDate: 1621613721295,
- },
- {
- timings: [
- 889, 991, 1093, 1205, 1286, 1370, 1453, 1556, 1670, 1753, 1844, 1921,
- 2004, 2086, 2170, 2257, 2352, 2435, 2521, 2604,
- ],
- chunk: 44,
- frameRange: [880, 899],
- startDate: 1621613717453,
- },
- {
- timings: [
- 920, 1057, 1160, 1289, 1370, 1455, 1537, 1643, 1755, 1837, 1921, 2003,
- 2087, 2188, 2280, 2375, 2471, 2555, 2637, 2721,
- ],
- chunk: 45,
- frameRange: [900, 919],
- startDate: 1621613720746,
- },
- {
- timings: [
- 907, 1044, 1146, 1257, 1341, 1423, 1506, 1613, 1723, 1807, 1907, 1990,
- 2075, 2158, 2261, 2343, 2423, 2506, 2589, 2674,
- ],
- chunk: 46,
- frameRange: [920, 939],
- startDate: 1621613720816,
- },
- {
- timings: [
- 1061, 1197, 1299, 1409, 1496, 1578, 1658, 1755, 1878, 1958, 2051, 2124,
- 2208, 2308, 2392, 2481, 2576, 2658, 2741, 2831,
- ],
- chunk: 47,
- frameRange: [940, 959],
- startDate: 1621613720893,
- },
- {
- timings: [
- 963, 1116, 1227, 1327, 1412, 1493, 1576, 1678, 1792, 1876, 1959, 2042,
- 2126, 2209, 2296, 2384, 2478, 2559, 2641, 2726,
- ],
- chunk: 48,
- frameRange: [960, 979],
- startDate: 1621613721127,
- },
- {
- timings: [
- 858, 963, 1063, 1171, 1255, 1337, 1420, 1523, 1636, 1719, 1836, 1919,
- 2005, 2087, 2170, 2255, 2353, 2437, 2519, 2604,
- ],
- chunk: 49,
- frameRange: [980, 999],
- startDate: 1621613717505,
- },
- {
- timings: [
- 922, 1059, 1189, 1291, 1400, 1483, 1587, 1701, 1802, 1884, 1986, 2083,
- 2168, 2267, 2356, 2450, 2550, 2653, 2750, 2849,
- ],
- chunk: 5,
- frameRange: [100, 119],
- startDate: 1621613720695,
- },
- {
- timings: [
- 994, 1128, 1222, 1329, 1427, 1508, 1627, 1751, 1877, 1970, 2065, 2176,
- 2296, 2409, 2517, 2617, 2708, 2797, 2875, 2961,
- ],
- chunk: 50,
- frameRange: [1000, 1019],
- startDate: 1621613720903,
- },
- {
- timings: [
- 1381, 1630, 1818, 2004, 2141, 2369, 2482, 2649, 2802, 2938, 3051, 3157,
- 3287, 3459, 3570, 3692, 3870, 4012, 4121, 4253,
- ],
- chunk: 51,
- frameRange: [1020, 1039],
- startDate: 1621613721087,
- },
- {
- timings: [
- 1028, 1200, 1319, 1460, 1559, 1655, 1756, 1894, 2022, 2122, 2222, 2311,
- 2441, 2538, 2626, 2731, 2839, 2937, 3021, 3122,
- ],
- chunk: 52,
- frameRange: [1040, 1059],
- startDate: 1621613721117,
- },
- {
- timings: [
- 988, 1140, 1249, 1377, 1469, 1553, 1635, 1741, 1876, 1970, 2068, 2150,
- 2235, 2334, 2423, 2503, 2601, 2684, 2768, 2852,
- ],
- chunk: 53,
- frameRange: [1060, 1079],
- startDate: 1621613721024,
- },
- {
- timings: [
- 961, 1102, 1213, 1332, 1415, 1497, 1581, 1689, 1798, 1930, 2013, 2095,
- 2180, 2261, 2347, 2429, 2514, 2597, 2686, 2782,
- ],
- chunk: 54,
- frameRange: [1080, 1099],
- startDate: 1621613719786,
- },
- {
- timings: [
- 920, 1001, 1086, 1185, 1288, 1377, 1468, 1556, 1692, 1794, 1893, 1974,
- 2067, 2151, 2235, 2319, 2401, 2485, 2584, 2667,
- ],
- chunk: 55,
- frameRange: [1100, 1119],
- startDate: 1621613721133,
- },
- {
- timings: [
- 994, 1105, 1207, 1303, 1421, 1522, 1619, 1743, 1852, 1935, 2019, 2119,
- 2202, 2302, 2391, 2485, 2568, 2671, 2780, 2869,
- ],
- chunk: 56,
- frameRange: [1120, 1139],
- startDate: 1621613721020,
- },
- {
- timings: [
- 914, 1031, 1115, 1215, 1332, 1417, 1494, 1597, 1677, 1761, 1845, 1927,
- 2011, 2094, 2182, 2261, 2345, 2429, 2528, 2610,
- ],
- chunk: 57,
- frameRange: [1140, 1159],
- startDate: 1621613721029,
- },
- {
- timings: [
- 1289, 1564, 1801, 2051, 2319, 2569, 2845, 3132, 3388, 3631, 3884, 4152,
- 4434, 4702, 4970, 5232, 5507, 5832, 6117, 6416,
- ],
- chunk: 58,
- frameRange: [1160, 1179],
- startDate: 1621613721196,
- },
- {
- timings: [
- 1106, 1404, 1688, 1991, 2287, 2604, 2904, 3236, 3537, 3871, 4188, 4503,
- 4825, 5156, 5493, 5822, 6183, 6537, 6874, 7220,
- ],
- chunk: 59,
- frameRange: [1180, 1199],
- startDate: 1621613717501,
- },
- {
- timings: [
- 1143, 1298, 1422, 1586, 1758, 1870, 1970, 2091, 2189, 2291, 2388, 2486,
- 2586, 2671, 2775, 2878, 2987, 3085, 3169, 3271,
- ],
- chunk: 6,
- frameRange: [120, 139],
- startDate: 1621613721114,
- },
- {
- timings: [
- 1246, 1654, 2012, 2380, 2743, 3128, 3493, 3911, 4295, 4695, 5110, 5493,
- 5876, 6278, 6696, 7076, 7477, 7880, 8328, 8745,
- ],
- chunk: 60,
- frameRange: [1200, 1219],
- startDate: 1621613720946,
- },
- {
- timings: [
- 1289, 1745, 2165, 2593, 3022, 3456, 3905, 4371, 4840, 5287, 5721, 6187,
- 6637, 7087, 7541, 8004, 8506, 9021, 9505, 9988,
- ],
- chunk: 61,
- frameRange: [1220, 1239],
- startDate: 1621613721001,
- },
- {
- timings: [
- 1342, 1863, 2339, 2857, 3373, 3906, 4438, 4986, 5505, 6021, 6539, 7055,
- 7572, 8139, 8715, 9254, 9792, 10321, 10889, 11457,
- ],
- chunk: 62,
- frameRange: [1240, 1259],
- startDate: 1621613720746,
- },
- {
- timings: [
- 1364, 1956, 2465, 3017, 3564, 4114, 4699, 5282, 5846, 6397, 6963, 7546,
- 8113, 8691, 9289, 9846, 10440, 10995, 11564, 12164,
- ],
- chunk: 63,
- frameRange: [1260, 1279],
- startDate: 1621613721000,
- },
- {
- timings: [
- 1558, 2261, 2871, 3504, 4118, 4736, 5369, 6034, 6251, 6467, 6702, 6935,
- 7169, 7420, 7679, 7942, 8271, 8536, 8786, 9071,
- ],
- chunk: 64,
- frameRange: [1280, 1299],
- startDate: 1621613720928,
- },
- {
- timings: [
- 1110, 1426, 1702, 1989, 2269, 2577, 2920, 3234, 3519, 3819, 4119, 4418,
- 4721, 5017, 5323, 5634, 5954, 6267, 6584, 6919,
- ],
- chunk: 65,
- frameRange: [1300, 1319],
- startDate: 1621613721073,
- },
- {
- timings: [
- 1191, 1564, 1912, 2250, 2574, 2925, 3273, 3650, 4029, 4390, 4740, 5107,
- 5490, 5857, 6212, 6591, 6958, 7324, 7706, 8090,
- ],
- chunk: 66,
- frameRange: [1320, 1339],
- startDate: 1621613720989,
- },
- {
- timings: [
- 1195, 1507, 1774, 2058, 2323, 2608, 2910, 3239, 3539, 3865, 4190, 4526,
- 4874, 5222, 5576, 5940, 6310, 6705, 7091, 7490,
- ],
- chunk: 67,
- frameRange: [1340, 1359],
- startDate: 1621613720837,
- },
- {
- timings: [
- 1330, 1827, 2266, 2732, 3184, 3664, 4145, 4667, 5147, 5647, 6162, 6679,
- 7195, 7729, 8332, 8912, 9465, 10030, 10616, 11214,
- ],
- chunk: 68,
- frameRange: [1360, 1379],
- startDate: 1621613721064,
- },
- {
- timings: [
- 1475, 2121, 2725, 3343, 3957, 4611, 5258, 5924, 6557, 7223, 7873, 8523,
- 9191, 9873, 10560, 11242, 11941, 12674, 13407, 14208,
- ],
- chunk: 69,
- frameRange: [1380, 1399],
- startDate: 1621613720870,
- },
- {
- timings: [
- 930, 1033, 1117, 1199, 1298, 1397, 1485, 1579, 1662, 1745, 1829, 1912,
- 2000, 2079, 2167, 2248, 2331, 2413, 2497, 2581,
- ],
- chunk: 7,
- frameRange: [140, 159],
- startDate: 1621613720515,
- },
- {
- timings: [
- 1721, 2565, 3337, 4152, 4948, 5788, 6633, 7550, 8465, 9349, 10232, 11117,
- 11998, 12898, 13820, 14732, 15653, 16583, 17501, 18432,
- ],
- chunk: 70,
- frameRange: [1400, 1419],
- startDate: 1621613721064,
- },
- {
- timings: [
- 1943, 2956, 3922, 4893, 5871, 6873, 7871, 8937, 9954, 10971, 12004, 13055,
- 14173, 15288, 16382, 17472, 18559, 19642, 20739, 21888,
- ],
- chunk: 71,
- frameRange: [1420, 1439],
- startDate: 1621613720751,
- },
- {
- timings: [
- 2140, 3336, 4485, 5653, 6819, 8003, 9234, 10519, 11718, 12919, 14134,
- 15336, 16551, 17822, 19071, 20302, 21573, 22818, 24084, 25350,
- ],
- chunk: 72,
- frameRange: [1440, 1459],
- startDate: 1621613721279,
- },
- {
- timings: [
- 2138, 3449, 4738, 5988, 7269, 8638, 9955, 11337, 11586, 11836, 12085,
- 12350, 12634, 12935, 13238, 13552, 13886, 14218, 14552, 14903,
- ],
- chunk: 73,
- frameRange: [1460, 1479],
- startDate: 1621613721228,
- },
- {
- timings: [
- 1302, 1680, 2067, 2467, 2863, 3265, 3679, 4131, 4546, 4980, 5415, 5867,
- 6330, 6796, 7283, 7764, 8267, 8779, 9281, 9782,
- ],
- chunk: 74,
- frameRange: [1480, 1499],
- startDate: 1621613717432,
- },
- {
- timings: [
- 1499, 2092, 2630, 3196, 3744, 4335, 4911, 5529, 6128, 6711, 7311, 7909,
- 8558, 9210, 9829, 10458, 11096, 11753, 12410, 13077,
- ],
- chunk: 75,
- frameRange: [1500, 1519],
- startDate: 1621613720703,
- },
- {
- timings: [
- 981, 1096, 1180, 1262, 1345, 1430, 1530, 1627, 1712, 1794, 1876, 1960,
- 2043, 2126, 2214, 2293, 2377, 2461, 2544, 2631,
- ],
- chunk: 76,
- frameRange: [1520, 1539],
- startDate: 1621613720917,
- },
- {
- timings: [
- 939, 1023, 1105, 1204, 1290, 1407, 1514, 1611, 1708, 1805, 1887, 1971,
- 2055, 2137, 2221, 2306, 2387, 2471, 2571, 2654,
- ],
- chunk: 77,
- frameRange: [1540, 1559],
- startDate: 1621613717542,
- },
- {
- timings: [
- 1312, 1420, 1522, 1637, 1728, 1886, 1992, 2131, 2217, 2305, 2390, 2490,
- 2589, 2689, 2773, 2850, 2936, 3036, 3146, 3236,
- ],
- chunk: 78,
- frameRange: [1560, 1579],
- startDate: 1621613721142,
- },
- {
- timings: [
- 1006, 1122, 1220, 1303, 1385, 1486, 1568, 1655, 1734, 1853, 1934, 2017,
- 2102, 2184, 2269, 2352, 2437, 2534, 2620, 2719,
- ],
- chunk: 79,
- frameRange: [1580, 1599],
- startDate: 1621613720981,
- },
- {
- timings: [
- 1061, 1181, 1279, 1380, 1480, 1596, 1701, 1812, 1895, 1993, 2078, 2161,
- 2265, 2361, 2466, 2564, 2661, 2761, 2844, 2971,
- ],
- chunk: 8,
- frameRange: [160, 179],
- startDate: 1621613720899,
- },
- {
- timings: [
- 623, 706, 790, 876, 956, 1065, 1171, 1258, 1338, 1422, 1505, 1588, 1673,
- 1756, 1840, 1922, 2005, 2088, 2174, 2256,
- ],
- chunk: 80,
- frameRange: [1600, 1619],
- startDate: 1621613721324,
- },
- {
- timings: [
- 957, 1058, 1141, 1249, 1341, 1471, 1586, 1678, 1758, 1837, 1947, 2023,
- 2108, 2223, 2308, 2387, 2471, 2554, 2650, 2738,
- ],
- chunk: 81,
- frameRange: [1620, 1639],
- startDate: 1621613720979,
- },
- {
- timings: [
- 967, 1071, 1152, 1251, 1351, 1436, 1517, 1608, 1683, 1766, 1853, 1936,
- 2018, 2101, 2188, 2268, 2352, 2436, 2525, 2601,
- ],
- chunk: 82,
- frameRange: [1640, 1659],
- startDate: 1621613720883,
- },
- {
- timings: [
- 957, 1073, 1155, 1236, 1339, 1438, 1521, 1620, 1703, 1786, 1869, 1954,
- 2038, 2120, 2203, 2303, 2402, 2486, 2569, 2652,
- ],
- chunk: 83,
- frameRange: [1660, 1679],
- startDate: 1621613720956,
- },
- {
- timings: [
- 588, 671, 757, 837, 921, 1003, 1087, 1170, 1254, 1336, 1421, 1503, 1592,
- 1671, 1755, 1837, 1920, 2003, 2086, 2172,
- ],
- chunk: 84,
- frameRange: [1680, 1699],
- startDate: 1621613720902,
- },
- {
- timings: [
- 853, 953, 1039, 1134, 1237, 1316, 1400, 1483, 1568, 1651, 1733, 1817,
- 1903, 1984, 2071, 2151, 2235, 2317, 2401, 2485,
- ],
- chunk: 85,
- frameRange: [1700, 1719],
- startDate: 1621613720997,
- },
- {
- timings: [
- 1054, 1188, 1313, 1437, 1536, 1632, 1735, 1855, 1949, 2034, 2114, 2208,
- 2299, 2381, 2474, 2581, 2664, 2754, 2830, 2914,
- ],
- chunk: 86,
- frameRange: [1720, 1739],
- startDate: 1621613721637,
- },
- {
- timings: [
- 919, 1026, 1116, 1223, 1322, 1406, 1491, 1575, 1658, 1757, 1841, 1923,
- 2006, 2089, 2176, 2255, 2339, 2424, 2505, 2589,
- ],
- chunk: 87,
- frameRange: [1740, 1759],
- startDate: 1621613720983,
- },
- {
- timings: [
- 918, 1020, 1114, 1202, 1301, 1383, 1468, 1568, 1653, 1734, 1817, 1937,
- 2069, 2172, 2271, 2351, 2434, 2520, 2600, 2684,
- ],
- chunk: 88,
- frameRange: [1760, 1779],
- startDate: 1621613720851,
- },
- {
- timings: [
- 1411, 1572, 1677, 1808, 1932, 2126, 2262, 2433, 2551, 2672, 2765, 2872,
- 2969, 3074, 3186, 3274, 3373, 3472, 3594, 3704,
- ],
- chunk: 89,
- frameRange: [1780, 1799],
- startDate: 1621613721182,
- },
- {
- timings: [
- 1162, 1393, 1599, 1812, 2009, 2227, 2463, 2676, 2877, 3076, 3278, 3476,
- 3679, 3878, 4081, 4293, 4495, 4710, 4927, 5146,
- ],
- chunk: 9,
- frameRange: [180, 199],
- startDate: 1621613721375,
- },
- {
- timings: [
- 885, 992, 1087, 1186, 1285, 1367, 1451, 1552, 1642, 1735, 1817, 1901,
- 1985, 2067, 2176, 2251, 2335, 2426, 2517, 2600,
- ],
- chunk: 90,
- frameRange: [1800, 1819],
- startDate: 1621613720949,
- },
- {
- timings: [
- 870, 984, 1074, 1170, 1269, 1353, 1438, 1557, 1640, 1720, 1804, 1887,
- 1969, 2054, 2154, 2236, 2319, 2409, 2486, 2550,
- ],
- chunk: 91,
- frameRange: [1820, 1839],
- startDate: 1621613721110,
- },
- {
- timings: [
- 889, 989, 1089, 1188, 1271, 1355, 1438, 1541, 1631, 1705, 1787, 1875,
- 1954, 2037, 2125, 2208, 2289, 2388, 2471, 2571,
- ],
- chunk: 92,
- frameRange: [1840, 1859],
- startDate: 1621613720969,
- },
- {
- timings: [
- 938, 1039, 1138, 1238, 1322, 1404, 1487, 1591, 1671, 1753, 1839, 1926,
- 2004, 2087, 2172, 2263, 2356, 2454, 2539, 2639,
- ],
- chunk: 93,
- frameRange: [1860, 1879],
- startDate: 1621613720980,
- },
- {
- timings: [
- 893, 996, 1078, 1178, 1279, 1362, 1445, 1556, 1675, 1762, 1845, 1929,
- 2012, 2095, 2183, 2268, 2368, 2463, 2548, 2653,
- ],
- chunk: 94,
- frameRange: [1880, 1899],
- startDate: 1621613721047,
- },
- {
- timings: [
- 1008, 1125, 1207, 1323, 1406, 1489, 1572, 1680, 1772, 1855, 1942, 2028,
- 2106, 2189, 2278, 2364, 2461, 2555, 2640, 2740,
- ],
- chunk: 95,
- frameRange: [1900, 1919],
- startDate: 1621613721001,
- },
- {
- timings: [
- 1018, 1134, 1233, 1382, 1484, 1564, 1649, 1769, 1863, 1963, 2064, 2151,
- 2250, 2348, 2437, 2537, 2637, 2732, 2832, 2950,
- ],
- chunk: 96,
- frameRange: [1920, 1939],
- startDate: 1621613721361,
- },
- {
- timings: [
- 1014, 1128, 1224, 1339, 1425, 1506, 1590, 1692, 1794, 1890, 1982, 2078,
- 2157, 2239, 2326, 2414, 2530, 2624, 2708, 2810,
- ],
- chunk: 97,
- frameRange: [1940, 1959],
- startDate: 1621613720665,
- },
- {
- timings: [
- 991, 1109, 1220, 1336, 1435, 1519, 1623, 1746, 1853, 1936, 2019, 2107,
- 2204, 2305, 2403, 2514, 2646, 2735, 2818, 2938,
- ],
- chunk: 98,
- frameRange: [1960, 1979],
- startDate: 1621613720972,
- },
- {
- timings: [
- 925, 1045, 1143, 1258, 1357, 1441, 1543, 1646, 1740, 1825, 1908, 1994,
- 2076, 2157, 2242, 2327, 2432, 2523, 2612, 2710,
- ],
- chunk: 99,
- frameRange: [1980, 1999],
- startDate: 1621613720974,
- },
-];
diff --git a/packages/lambda/src/test/unit/expected-out-name.test.ts b/packages/lambda/src/test/unit/expected-out-name.test.ts
index c039912e47..9c1383d57a 100644
--- a/packages/lambda/src/test/unit/expected-out-name.test.ts
+++ b/packages/lambda/src/test/unit/expected-out-name.test.ts
@@ -24,7 +24,6 @@ const testRenderMetadata: RenderMetadata = {
siteId: 'my-site',
startedDate: Date.now(),
totalChunks: 20,
- usesOptimizationProfile: false,
videoConfig: {
defaultProps: {},
durationInFrames: 200,
diff --git a/packages/lambda/src/test/unit/frame-bug.test.ts b/packages/lambda/src/test/unit/frame-bug.test.ts
deleted file mode 100644
index 64c8a30ecf..0000000000
--- a/packages/lambda/src/test/unit/frame-bug.test.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-import {expect, test} from 'vitest';
-import {isValidOptimizationProfile} from '../../functions/chunk-optimization/is-valid-profile';
-import {optimizeProfile} from '../../functions/chunk-optimization/optimize-profile';
-
-test('Should not throw ongetSimulated', () => {
- expect(
- optimizeProfile([
- {
- chunk: 0,
- frameRange: [0, 10],
- startDate: 1631614363572,
- timings: [200, 215, 300, 300, 110, 200, 110, 222, 130, 500, 111],
- },
- ])
- ).toEqual([
- {
- chunk: 0,
- frameRange: [0, 10],
- startDate: 1631614363572,
- timings: [200, 215, 300, 300, 110, 200, 110, 222, 130, 500, 111],
- },
- ]);
-});
-
-test('Should not throw ongetSimulated 2', () => {
- expect(
- optimizeProfile([
- {
- chunk: 0,
- frameRange: [0, 5],
- startDate: 1631614363572,
- timings: [200, 415, 700, 1000, 1110, 1140],
- },
- {
- chunk: 1,
- frameRange: [6, 10],
- startDate: 1631614363572,
- timings: [200, 415, 779, 1000, 1120],
- },
- ])
- ).toEqual([
- {
- chunk: 0,
- frameRange: [0, 3],
- startDate: 1631614363572,
- timings: [200, 415, 700, 1000],
- },
- {
- chunk: 1,
- frameRange: [4, 10],
- startDate: 1631614363572,
- timings: [110, 140, 340, 555, 919, 1140, 1260],
- },
- ]);
-});
-
-test('Should say valid profile', () => {
- expect(
- isValidOptimizationProfile([
- {
- chunk: 0,
- frameRange: [0, 5],
- startDate: 1631614363572,
- timings: [200, 415, 700, 1000, 1110, 1140],
- },
- {
- chunk: 1,
- frameRange: [6, 10],
- startDate: 1631614363572,
- timings: [200, 415, 779, 1000, 1120],
- },
- ])
- ).toEqual(true);
- expect(
- isValidOptimizationProfile([
- {
- chunk: 0,
- frameRange: [0, 5],
- startDate: 1631614363572,
- timings: [200, 415, 700, 1000, 1110, 1140],
- },
- {
- chunk: 1,
- frameRange: [6, 10],
- startDate: 1631614363572,
- timings: [200, 415, 779, 1000, 1120, 900],
- },
- ])
- ).toEqual(false);
- expect(
- isValidOptimizationProfile([
- {
- chunk: 0,
- frameRange: [0, 5],
- startDate: 1631614363572,
- timings: [200, 415, 700, 1000, 1110, 1140],
- },
- {
- chunk: 1,
- frameRange: [6, 10],
- startDate: 1631614363572,
- timings: [200, 415, 779, 1000, -1120],
- },
- ])
- ).toEqual(false);
-});
diff --git a/packages/lambda/src/test/unit/optimize-profile.test.ts b/packages/lambda/src/test/unit/optimize-profile.test.ts
deleted file mode 100644
index 20a987a41c..0000000000
--- a/packages/lambda/src/test/unit/optimize-profile.test.ts
+++ /dev/null
@@ -1,106 +0,0 @@
-import {describe, expect, test} from 'vitest';
-import {
- getFrameRangesFromProfile,
- sortProfileByFrameRanges,
-} from '../../functions/chunk-optimization/get-frame-ranges-from-profile';
-import {getProfileDuration} from '../../functions/chunk-optimization/get-profile-duration';
-import {optimizeInvocationOrder} from '../../functions/chunk-optimization/optimize-invocation-order';
-import {
- assignFrameToOther,
- optimizeProfile,
- optimizeProfileRecursively,
-} from '../../functions/chunk-optimization/optimize-profile';
-import {
- getSimulatedTimingForFrameRange,
- getTimingForFrame,
- simulateFrameRanges,
-} from '../../functions/chunk-optimization/simulate-frame-ranges';
-import {demoProfiles} from '../demo-profile';
-import {demoProfile2} from '../demo-profile-2';
-
-test('Should measure demo profile correctly', () => {
- expect(getProfileDuration(demoProfiles)).toEqual(29202);
-});
-
-test('Should get correct duration for a frame', () => {
- expect(getTimingForFrame(demoProfiles, 19)).toEqual(
- demoProfiles[0].timings[19] - demoProfiles[0].timings[18]
- );
- expect(getTimingForFrame(demoProfiles, 19)).toEqual(102);
- expect(getTimingForFrame(demoProfiles, 20)).toEqual(
- demoProfiles[1].timings[0]
- );
- expect(getTimingForFrame(demoProfiles, 20)).toEqual(951);
-});
-
-test('Get simulated profile for frame range', () => {
- expect(getSimulatedTimingForFrameRange(demoProfiles, [10, 29])).toEqual([
- 83, 166, 250, 333, 433, 518, 600, 683, 784, 886, 1837, 1948, 2049, 2149,
- 2264, 2347, 2431, 2531, 2614, 2695,
- ]);
-});
-
-test('Parser should not lose precision, same duration after parsing and reconstruction', () => {
- const reconstructed = simulateFrameRanges({
- profile: demoProfiles,
- newFrameRanges: getFrameRangesFromProfile(demoProfiles),
- });
-
- expect(getProfileDuration(reconstructed)).toEqual(29202);
- expect(getProfileDuration(reconstructed)).toEqual(
- getProfileDuration(demoProfiles)
- );
-});
-
-describe('Move frame from 1 frame range to another', () => {
- const frameRanges: [number, number][] = [
- [0, 19],
- [20, 39],
- [40, 59],
- ];
- test('Case from < to', () => {
- expect(
- assignFrameToOther({
- frameRanges,
- fromChunk: 0,
- toChunk: 2,
- framesToShift: 1,
- })
- ).toEqual([
- [0, 18],
- [19, 38],
- [39, 59],
- ]);
- });
- test('Case from > to', () => {
- expect(
- assignFrameToOther({
- frameRanges,
- fromChunk: 2,
- toChunk: 0,
- framesToShift: 1,
- })
- ).toEqual([
- [0, 20],
- [21, 40],
- [41, 59],
- ]);
- });
-});
-
-test('Optimize profile', () => {
- const sortedProfile = sortProfileByFrameRanges(demoProfiles);
- const optimized = optimizeProfileRecursively(sortedProfile, 400);
-
- const newDuration = getProfileDuration(optimized);
- expect(newDuration).toBeLessThan(10000);
- const optimizedInvocationOrder = getProfileDuration(
- optimizeInvocationOrder(optimized)
- );
- expect(optimizedInvocationOrder).toBeLessThan(9000);
- expect(optimizedInvocationOrder).toBeLessThan(newDuration);
-});
-
-test('Optimize profile edge case', () => {
- optimizeProfile(demoProfile2);
-});
diff --git a/packages/lambda/src/test/unit/plan-frame-ranges.test.ts b/packages/lambda/src/test/unit/plan-frame-ranges.test.ts
index c49813d453..08c230bbfc 100644
--- a/packages/lambda/src/test/unit/plan-frame-ranges.test.ts
+++ b/packages/lambda/src/test/unit/plan-frame-ranges.test.ts
@@ -4,10 +4,8 @@ import {planFrameRanges} from '../../functions/chunk-optimization/plan-frame-ran
test('Plan frame ranges should respect everyNthFrame', () => {
const planned = planFrameRanges({
framesPerLambda: 8,
- shouldUseOptimization: false,
everyNthFrame: 2,
frameRange: [0, 99],
- optimization: null,
});
expect(planned.chunks).toEqual([
[0, 15],
@@ -23,10 +21,8 @@ test('Plan frame ranges should respect everyNthFrame', () => {
test('Should remove ranges that are not going to render', () => {
const planned = planFrameRanges({
framesPerLambda: 11,
- shouldUseOptimization: false,
everyNthFrame: 1,
frameRange: [0, 22],
- optimization: null,
});
expect(planned.chunks).toEqual([
[0, 10],
diff --git a/packages/lambda/src/test/unit/price-calculation.test.ts b/packages/lambda/src/test/unit/price-calculation.test.ts
index 58d94c60da..c1a12918a9 100644
--- a/packages/lambda/src/test/unit/price-calculation.test.ts
+++ b/packages/lambda/src/test/unit/price-calculation.test.ts
@@ -34,7 +34,6 @@ test('Should not throw while calculating prices when time shifts occur', () => {
startedDate: aDate + 1000,
totalChunks: 20,
type: 'video',
- usesOptimizationProfile: true,
videoConfig: {
durationInFrames: 100,
fps: 30,