-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from lambdaclass/update-benchmarks
Update benchmarks
- Loading branch information
Showing
20 changed files
with
385 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ target/ | |
|
||
compiled_programs/ | ||
state_dumps/ | ||
rpc_cache | ||
bench_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from argparse import ArgumentParser | ||
|
||
import matplotlib.pyplot as plt | ||
import seaborn as sns | ||
from utils import load_compilation_logs | ||
|
||
argument_parser = ArgumentParser("Stress Test Plotter") | ||
argument_parser.add_argument("logs_path") | ||
arguments = argument_parser.parse_args() | ||
|
||
|
||
dataset = load_compilation_logs( | ||
arguments.logs_path, | ||
) | ||
|
||
figure, ax = plt.subplots() | ||
|
||
sns.set_color_codes("bright") | ||
sns.violinplot(ax=ax, x="size", data=dataset[dataset["executor"] == "native"], cut=0) | ||
|
||
ax.set_xlabel("Library Size (KiB)") | ||
ax.set_title("Library Size by Contract") | ||
|
||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from argparse import ArgumentParser | ||
|
||
import matplotlib.pyplot as plt | ||
import seaborn as sns | ||
from utils import load_compilation_logs | ||
|
||
argument_parser = ArgumentParser("Stress Test Plotter") | ||
argument_parser.add_argument("logs_path") | ||
arguments = argument_parser.parse_args() | ||
|
||
|
||
dataset = load_compilation_logs(arguments.logs_path) | ||
dataset = dataset.pivot_table(index="class hash", columns="executor") | ||
dataset.columns = ["_".join(a) for a in dataset.columns.to_flat_index()] | ||
|
||
figure, ax = plt.subplots() | ||
|
||
sns.set_color_codes("bright") | ||
|
||
sns.regplot( | ||
x="size_native", | ||
y="size_vm", | ||
data=dataset, | ||
ax=ax, | ||
) | ||
|
||
ax.set_xlabel("Native Compilation Size (KiB)") | ||
ax.set_ylabel("Casm Compilation Size (KiB)") | ||
ax.set_title("Compilation Size Correlation") | ||
|
||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from argparse import ArgumentParser | ||
import matplotlib.pyplot as plt | ||
import seaborn as sns | ||
from utils import load_compilation_logs | ||
|
||
argument_parser = ArgumentParser("Stress Test Plotter") | ||
argument_parser.add_argument("logs_path") | ||
arguments = argument_parser.parse_args() | ||
|
||
|
||
dataset = load_compilation_logs( | ||
arguments.logs_path, | ||
) | ||
|
||
figure, ax = plt.subplots() | ||
|
||
sns.set_color_codes("bright") | ||
|
||
sns.regplot( | ||
x="length", | ||
y="size", | ||
label="Native", | ||
data=dataset[dataset["executor"] == "native"], | ||
ax=ax, | ||
) | ||
sns.regplot( | ||
x="length", | ||
y="size", | ||
label="Casm", | ||
data=dataset[dataset["executor"] == "vm"], | ||
ax=ax, | ||
) | ||
|
||
ax.set_xlabel("Sierra size (KiB)") | ||
ax.set_ylabel("Compiled size (KiB)") | ||
ax.set_title("Compilation Size Trend") | ||
ax.ticklabel_format(style="plain") | ||
|
||
ax.legend() | ||
|
||
plt.show() |
Oops, something went wrong.