Update benchmark.py

This commit is contained in:
2026-05-06 10:59:59 +07:00
parent e3aea889dd
commit 65d4ffc7d0
+3 -3
View File
@@ -26,12 +26,12 @@ def run_test(n, threads, threshold):
def build_benchmark(): def build_benchmark():
data_sizes = { data_sizes = {
"Small (10^5)": 100000, "Small (10^5)": 100000,
"Medium (2*10^6)": 2000000, "Medium (10^6)": 1000000,
"Large (5*10^6)": 5000000, "Large (10^7)": 10000000,
} }
threshold = 10000 threshold = 10000
thread_counts = [1, 2, 4, 8, 12, 16] thread_counts = [1, 2, 4, 8, 12, 16, 32, 64, 128, 256]
plt.figure(figsize=(14, 6)) plt.figure(figsize=(14, 6))
ax1 = plt.subplot(1, 2, 1) ax1 = plt.subplot(1, 2, 1)