chore: profile config

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent 8f2eea70f6
commit 1a2e82f079
27 changed files with 730 additions and 231 deletions
+25 -5
View File
@@ -28,26 +28,46 @@ export const BenchmarkStatus: Record<string, StatusType> = {
[BenchmarkStatusValueMap.Unreachable]: StatusMaps.error
};
export const ProfileValueMap = {
LatencyShort: 'latency_short',
ThroughputMedium: 'throughput_medium',
LongContextStress: 'long_context_stress',
GenerationHeavy: 'generation_heavy',
Custom: 'Custom'
};
export const ProfileLabelMap = {
[ProfileValueMap.LatencyShort]: 'benchmark.form.profile.latency',
[ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput',
[ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext',
[ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy',
[ProfileValueMap.Custom]: 'benchmark.form.profile.custom'
};
export const profileOptions = [
{
label: 'benchmark.form.profile.latency',
value: 'latency_short',
value: ProfileValueMap.LatencyShort,
locale: true
},
{
label: 'benchmark.form.profile.throughput',
value: 'throughput_medium',
value: ProfileValueMap.ThroughputMedium,
locale: true
},
{
label: 'benchmark.form.profile.longContext',
value: 'long_context_stress',
value: ProfileValueMap.LongContextStress,
locale: true
},
{
label: 'benchmark.form.profile.heavy',
value: 'generation_heavy',
value: ProfileValueMap.GenerationHeavy,
locale: true
},
{ label: 'benchmark.form.profile.custom', value: 'custom', locale: true }
{
label: 'benchmark.form.profile.custom',
value: ProfileValueMap.Custom,
locale: true
}
];