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()
|
|
subprocess.check_output('./risspam -p books/*.txt', shell=True)
|
|
print("Time Rust:",time.time() - time_start)
|
|
print("***end benchmark***")
|