Commit a4f1ac50 authored by Hyun Soo  Kim's avatar Hyun Soo Kim
Browse files

initial commit

parent b32d4879
Loading
Loading
Loading
Loading

benchmark.c

0 → 100644
+21 −0
Original line number Diff line number Diff line
#include <stdio.h>
#include <stdlib.h>

#include <time.h>

int main(void)
{
    // clock_t start = clock();
    for (int i = 0; i < 10000; i++)
    {
        system("./md --addMolecule Molecules/acetylene.txt");
    }
    for (int i = 0; i < 10000; i++)
    {
        system("./md --findMolecule Molecules/biotin.txt");
    }
    // clock_t diff = clock() - start;
    // int m_sec = diff * 1000 / CLOCKS_PER_SEC;
    // printf("time taken %d seconds %d milliseconds\n", m_sec/1000, m_sec % 1000);
    return 0;
}

makefile

0 → 100644
+2 −0
Original line number Diff line number Diff line
make: benchmark.c
	gcc -g -Wall -o benchmark benchmark.c
 No newline at end of file