11.07.2015 Views

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3.Workload}k += prime;}}}count++;}return count;int main () {int ans;clock_t t1, t2;test ("sieve", "Sieve benchmark, $Revision: 1.1 $");t1 = clock ();ans = sieve ();t2 = clock ();if (ans != 1899)failed ("Sieve result wrong, ans = %d, expected 1899", ans);comment ("Time taken = %.3e mSecs",1000.0 * ((double)t2 - (double)t1) / (double)CLOCKS_PER_SEC);}result ();31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!