File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ async def get_batch_benchmark_trends(
197
197
results = {}
198
198
199
199
for trend_query in request .trend_queries :
200
- key = f"{ trend_query .binary_id } :{ trend_query .benchmark_name } "
200
+ key = f"{ trend_query .binary_id } :{ trend_query .benchmark_name } | { trend_query . python_major } . { trend_query . python_minor } "
201
201
trends = await crud .get_benchmark_trends (
202
202
db ,
203
203
benchmark_name = trend_query .benchmark_name ,
Original file line number Diff line number Diff line change @@ -274,7 +274,9 @@ export default function BuildComparisonPage() {
274
274
const newTrendData : Record < string , Record < string , TrendDataPoint [ ] > > = { } ;
275
275
276
276
for ( const [ key , trends ] of Object . entries ( batchResponse . results ) ) {
277
- const [ binaryId , benchmarkName ] = key . split ( ':' ) ;
277
+ // Extract binary ID and benchmark name from key: format is "binaryId:benchmarkName|pythonVersion"
278
+ let benchmarkPart = key . split ( '|' ) [ 0 ] ; // Remove python version part
279
+ const [ binaryId , benchmarkName ] = benchmarkPart . split ( ':' ) ; // Extract binary ID and benchmark name
278
280
if ( ! newTrendData [ binaryId ] ) {
279
281
newTrendData [ binaryId ] = { } ;
280
282
}
Original file line number Diff line number Diff line change @@ -309,7 +309,9 @@ export default function BenchmarkTrendPage() {
309
309
const newTrendData : Record < string , TrendDataPoint [ ] > = { } ;
310
310
311
311
for ( const [ key , trends ] of Object . entries ( batchResponse . results ) ) {
312
- const [ , benchmarkName ] = key . split ( ':' ) ;
312
+ // Extract benchmark name from key: format is "binaryId:benchmarkName|pythonVersion"
313
+ let benchmarkPart = key . split ( '|' ) [ 0 ] ; // Remove python version part
314
+ const [ , benchmarkName ] = benchmarkPart . split ( ':' ) ; // Extract benchmark name
313
315
newTrendData [ benchmarkName ] = trends ;
314
316
}
315
317
You can’t perform that action at this time.
0 commit comments