2024-12-01 22:03:07 +01:00
|
|
|
import subprocess
|
|
|
|
import time
|
|
|
|
|
|
|
|
print("***benchmarking***")
|
|
|
|
time_start = time.time()
|
|
|
|
subprocess.check_output('./isspam books/*.txt', shell=True)
|
|
|
|
print("Time C:",time.time() - time_start)
|
|
|
|
time_start = time.time()
|
2024-12-01 22:32:23 +01:00
|
|
|
subprocess.check_output('./risspam -p books/*.txt', shell=True)
|
2024-12-01 22:03:07 +01:00
|
|
|
print("Time Rust:",time.time() - time_start)
|
2025-03-20 15:27:02 +01:00
|
|
|
time_start = time.time()
|
|
|
|
subprocess.check_output('./isspam_cpp books/*.txt', shell=True)
|
|
|
|
print("Time CPP:",time.time() - time_start)
|
2024-12-01 22:03:07 +01:00
|
|
|
print("***end benchmark***")
|