Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend-python): make benchmark target ids unique #1054

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading