Skip to content

Commit

Permalink
fix(frontend-python): make benchmark target ids unique
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-sahin committed Sep 19, 2024
1 parent cc78301 commit 9ae9a53
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 5 additions & 1 deletion frontends/concrete-python/benchmarks/game_of_life.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def targets():
for implementation in GameOfLife.implementations():
result.append(
{
"id": f"game-of-life :: " f"{dimension} x {dimension} ({implementation})",
"id": (
f"game-of-life :: "
f"Game of Life "
f"| {dimension} x {dimension} | {implementation}"
),
"name": (
f"Advancing Game of Life simulation "
f"of size {dimension} x {dimension} "
Expand Down
4 changes: 3 additions & 1 deletion frontends/concrete-python/benchmarks/levenshtein_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def targets():
{
"id": (
f"levenshtein-distance :: "
f"alphabet = {alphabet} | max_string_size = {max_string_length}"
f"Levenshtein distance "
f"| alphabet = {alphabet} "
f"| max_string_size = {max_string_length}"
),
"name": (
f"Levenshtein distance between two strings "
Expand Down
9 changes: 6 additions & 3 deletions frontends/concrete-python/benchmarks/static_kvdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def targets():
{
"id": (
f"static-kvdb-insert :: "
f"{number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
f"Static KVDB insert "
f"| {number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
),
"name": (
f"Insertion to "
Expand All @@ -212,7 +213,8 @@ def targets():
{
"id": (
f"static-kvdb-replace :: "
f"{number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
f"Static KVDB replace "
f"| {number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
),
"name": (
f"Replacement in "
Expand All @@ -234,7 +236,8 @@ def targets():
{
"id": (
f"static-kvdb-query :: "
f"{number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
f"Static KVDB query "
f"| {number_of_entries} * {key_size}->{value_size} ^ {chunk_size}"
),
"name": (
f"Query of "
Expand Down

0 comments on commit 9ae9a53

Please sign in to comment.