The Artima Developer Community
Sponsored Link

Java Buzz Forum
Microbenchmarking Java - Compare Algorithms

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter Karich

Posts: 468
Nickname: pettar
Registered: Apr, 2008

Peter Karich is Physicist and Java Software Developer
Microbenchmarking Java - Compare Algorithms Posted: May 21, 2009 10:29 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Peter Karich.
Original Post: Microbenchmarking Java - Compare Algorithms
Feed Title: Java and more ...
Feed URL: https://karussell.wordpress.com/category/java/feed/
Feed Description: Just another weblog. Its about my developer experiences with Java in general. In detail I will blog about NetBeans, Eclipse, Design Patterns, News, Web Frameworks and other tools. My focus will be open source tools, which make the life of a Java developer easier.
Latest Java Buzz Posts
Latest Java Buzz Posts by Peter Karich
Latest Posts From Java and more ...

Advertisement
There are a lot microbenchmark tips out in the www. The intent of them differs from author to author. Today I want to show how you could compare e.g. different algorithms. You could simply do: int COUNT = 1000000; long firstMillis = System.currentTimeMillis(); for(int i = 0; i < COUNT; i++) {   runAlgorithm(); } System.out.println("Mean runtime of algorithm in seconds:"+(System.currentTimeMillis()-firstMillis) / [...]

Read: Microbenchmarking Java - Compare Algorithms

Topic: UK's oldest Twitter user is a 103yr-old woman Previous Topic   Next Topic Topic: Mark Volkmann: Clojure---Functional Programming for the JVM (And a Friday Quiz)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use