Skip to content

Commit

Permalink
Updated benchmarking results
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomTr committed Jul 8, 2024
1 parent 634c3b6 commit dae6f73
Show file tree
Hide file tree
Showing 20 changed files with 24,517 additions and 27,784 deletions.
7 changes: 7 additions & 0 deletions benchmark_script/input/graphs/eip_graph_template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@
(8 cores, ${8>go binding (rust-kzg with blst backend)})
(16 cores, ${16>go binding (rust-kzg with blst backend)}) };
\addlegendentry{constantine}
\addplot[mark=*, mark options={scale=1.5}, thick, yellow] coordinates {
(1 core, ${1>constantine})
(2 cores, ${2>constantine})
(4 cores, ${4>constantine})
(8 cores, ${8>constantine})
(16 cores, ${16>constantine}) };
\end{axis}
\end{tikzpicture}
}
Expand Down
52,274 changes: 24,491 additions & 27,783 deletions benchmark_script/input/rust-kzg-benchmarks.txt

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion benchmark_script/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,32 @@

'verify_blob_kzg_proof_batch/1': 'verify_blob_kzg_proof_batch/1',
'Benchmark/VerifyBlobKZGProofBatchPar(count=1)': 'verify_blob_kzg_proof_batch/1',
'verify_blob_kzg_proof (batch 1)': 'verify_blob_kzg_proof_batch/1',

'verify_blob_kzg_proof_batch/2': 'verify_blob_kzg_proof_batch/2',
'Benchmark/VerifyBlobKZGProofBatchPar(count=2)': 'verify_blob_kzg_proof_batch/2',
'verify_blob_kzg_proof (batch 2)': 'verify_blob_kzg_proof_batch/2',

'verify_blob_kzg_proof_batch/4': 'verify_blob_kzg_proof_batch/4',
'Benchmark/VerifyBlobKZGProofBatchPar(count=4)': 'verify_blob_kzg_proof_batch/4',
'verify_blob_kzg_proof (batch 4)': 'verify_blob_kzg_proof_batch/4',

'verify_blob_kzg_proof_batch/8': 'verify_blob_kzg_proof_batch/8',
'Benchmark/VerifyBlobKZGProofBatchPar(count=8)': 'verify_blob_kzg_proof_batch/8',
'verify_blob_kzg_proof (batch 8)': 'verify_blob_kzg_proof_batch/8',

'verify_blob_kzg_proof_batch/16': 'verify_blob_kzg_proof_batch/16',
'Benchmark/VerifyBlobKZGProofBatchPar(count=16)': 'verify_blob_kzg_proof_batch/16',
'verify_blob_kzg_proof (batch 16)': 'verify_blob_kzg_proof_batch/16',

'verify_blob_kzg_proof_batch/32': 'verify_blob_kzg_proof_batch/32',
'Benchmark/VerifyBlobKZGProofBatchPar(count=32)': 'verify_blob_kzg_proof_batch/32',
'verify_blob_kzg_proof (batch 32)': 'verify_blob_kzg_proof_batch/32',


'verify_blob_kzg_proof_batch/64': 'verify_blob_kzg_proof_batch/64',
'Benchmark/VerifyBlobKZGProofBatchPar(count=64)': 'verify_blob_kzg_proof_batch/64',
'verify_blob_kzg_proof (batch 64)': 'verify_blob_kzg_proof_batch/64',

'Benchmark/VerifyBlobKZGProofBatch(count=1)': 'verify_blob_kzg_proof_batch/1 (sequential)',
'Benchmark/VerifyBlobKZGProofBatch(count=2)': 'verify_blob_kzg_proof_batch/2 (sequential)',
Expand Down Expand Up @@ -123,6 +131,7 @@ def parse_benchmark_group(file, name):

go_matches = re.findall(r"^(.+)\t *\d+\t *(\d+) ns\/op(?:\t *\d+ B\/op\t *\d+ allocs\/op)?$", data, flags=re.M)
rust_matches = re.findall(r"^(\S.+)\s+time:\s*\[\d+.\d*\sm?s\s(\d+.\d*\sm?s)\s\d+.\d*\sm?s\]", data, flags=re.M)
nim_matches = re.findall(r"(\w+(?:\s\(batch\s\d+\))?\s+\d+ threads|verify_kzg_proof\s+serial)\s+\d+\.\d+\sops\/s\s+(\d+)\sns\/op", data, flags=re.M)

output = {}

Expand Down Expand Up @@ -156,6 +165,15 @@ def parse_benchmark_group(file, name):
normalized_name = name

output[normalized_name] = int(float(time.group(1)) * scale)
elif len(nim_matches) > 0:
for (name, time) in nim_matches:
res = re.match("^(\w+(?:\s\(batch\s\d+\))?)", name)
name = res.group(1)

normalized_name = normalize_benchmark_name.get(name)
if normalized_name is None:
print("Warning! Unrecognized benchmark name - ", name)
output[normalized_name] = int(time)
else:
print("Unrecognized! ", name)

Expand Down Expand Up @@ -440,7 +458,7 @@ def main():
if not os.path.exists("./output"):
os.makedirs("./output")

with open("./input/rust-kzg-benchmarks.txt", "r") as bench_results, pd.ExcelWriter("./output/results.ods", mode="w", engine="odf") as output_writer:
with open("./input/rust-kzg-benchmarks.txt", "r", encoding="utf8") as bench_results, pd.ExcelWriter("./output/results.ods", mode="w", engine="odf") as output_writer:
groups = {}

line = bench_results.readline()
Expand Down
Binary file modified images/blob_to_kzg_commitment.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/compute_blob_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/compute_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/cuda_blob_to_kzg_commitment.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/cuda_compute_blob_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/cuda_compute_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/fft.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/multi_scalar_multiplication.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_32.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_64.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_blob_kzg_proof_batch_8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/verify_kzg_proof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dae6f73

Please sign in to comment.