mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
chore(deps): upgrade all dependencies, toolchains and images (#2825)
This commit is contained in:
1 parent
56e04e7b53
commit
3b552e00ef
510 files changed
+23614
-37473
No files matched your search
@@ -18,7 +18,7 @@ import type {
|
||||
} from '@fluxer/voice_engine_v2/src/protocol/types';
|
||||
import {createVoiceEngineV2MemoryEventLogSpillSink} from '@fluxer/voice_engine_v2/src/runtime/eventLogRing';
|
||||
import {VoiceEngineV2Runtime} from '@fluxer/voice_engine_v2/src/runtime/VoiceEngineV2Runtime';
|
||||
import {bench, describe} from 'vitest';
|
||||
import {test} from 'vitest';
|
||||
|
||||
interface VoiceEngineV2BenchFixture {
|
||||
events: Array<VoiceEngineV2Event>;
|
||||
@@ -108,24 +108,24 @@ const runtimeForScreen = buildRuntimeWithConnectedSession();
|
||||
const runtimeForParticipant = buildRuntimeWithConnectedSession();
|
||||
const runtimeForStats = buildRuntimeWithConnectedSession();
|
||||
|
||||
describe('voice engine v2 runtime dispatch round-trip', () => {
|
||||
bench('dispatch inboundVideo.frameReceived', () => {
|
||||
test('voice engine v2 runtime dispatch round-trip', async ({bench}) => {
|
||||
await bench('dispatch inboundVideo.frameReceived', () => {
|
||||
runtimeForFrames.dispatch(frameEvent);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('dispatch microphone.publishRequested', () => {
|
||||
await bench('dispatch microphone.publishRequested', () => {
|
||||
runtimeForMicrophone.dispatch(microphoneEvent);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('dispatch screen.publishRequested', () => {
|
||||
await bench('dispatch screen.publishRequested', () => {
|
||||
runtimeForScreen.dispatch(screenEvent);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('dispatch room.participantJoined', () => {
|
||||
await bench('dispatch room.participantJoined', () => {
|
||||
runtimeForParticipant.dispatch(participantEvent);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('dispatch stats.collected', () => {
|
||||
await bench('dispatch stats.collected', () => {
|
||||
runtimeForStats.dispatch(statsEvent);
|
||||
});
|
||||
}).run();
|
||||
});
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
VoiceEngineV2Track,
|
||||
VoiceEngineV2TrackSource,
|
||||
} from '@fluxer/voice_engine_v2/src/protocol/types';
|
||||
import {bench, describe} from 'vitest';
|
||||
import {test} from 'vitest';
|
||||
|
||||
const PARTICIPANT_COUNT = 8;
|
||||
const TRACKS_PER_PARTICIPANT = 4;
|
||||
@@ -56,16 +56,16 @@ function buildRealisticSnapshot(): VoiceEngineV2Snapshot {
|
||||
const realisticSnapshot = buildRealisticSnapshot();
|
||||
const serializedSnapshot = JSON.stringify(realisticSnapshot);
|
||||
|
||||
describe('voice engine v2 snapshot serialise/deserialise baseline', () => {
|
||||
bench('JSON.stringify snapshot (8 participants × 4 tracks)', () => {
|
||||
test('voice engine v2 snapshot serialise/deserialise baseline', async ({bench}) => {
|
||||
await bench('JSON.stringify snapshot (8 participants × 4 tracks)', () => {
|
||||
JSON.stringify(realisticSnapshot);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('JSON.parse snapshot (8 participants × 4 tracks)', () => {
|
||||
await bench('JSON.parse snapshot (8 participants × 4 tracks)', () => {
|
||||
JSON.parse(serializedSnapshot);
|
||||
});
|
||||
}).run();
|
||||
|
||||
bench('JSON.stringify + JSON.parse round-trip', () => {
|
||||
await bench('JSON.stringify + JSON.parse round-trip', () => {
|
||||
JSON.parse(JSON.stringify(realisticSnapshot));
|
||||
});
|
||||
}).run();
|
||||
});
|
||||
Reference in new issue
Block a user