This commit is contained in:
parent
0b21d119af
commit
c26927a265
2
bench.py
2
bench.py
@ -6,6 +6,6 @@ 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 books/*.txt', shell=True)
|
||||
subprocess.check_output('./risspam -p books/*.txt', shell=True)
|
||||
print("Time Rust:",time.time() - time_start)
|
||||
print("***end benchmark***")
|
||||
|
@ -313,12 +313,14 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (argc > 1) {
|
||||
for (int i = 1; i < argc; i++) {
|
||||
|
||||
pid_t pid = fork();
|
||||
if(!pid){
|
||||
printf("File: %s\n", argv[i]);
|
||||
|
||||
analyze_file(argv[i]);
|
||||
printf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user