WINDOWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

WEEKLY HIGHLIGHTS

DVD Cloner45
Spyware Doctor40
1Click DVD Copy40
Apollo DVD Copy40
ABC Amber BlackBer...45
Protected Music Co...40

7-DAY TOP DOWNLOAD

#
Program
Avira AntiVir
Personal - Free
Antivirus 8.1.0.331

118,466
Windows Live
Messenger 2009
14.0.5027.908

74,274
Windows Live
Messenger
8.5.1302.1018

60,228
Internet Download
Manager 5.14 Build 5

42,325
DVD Shrink 3.2.0.15
41,312
Y! Multi Messenger
8.x and 9.x

38,052
Vista Transformation
Pack 8.0.1

35,439
Microsoft Office
2007

35,029
Uxtheme
Multi-patcher 6.0

31,053
Nero 7 Premium
7.11.10.0

29,983

WEEK'S BEST

  • Opera 9.60 Build 1...
  • DAEMON Tools Pro B...
  • Advanced X Video C...
  • WinRAR 3.80 Stable
  • Nero 9 9.0.9.4
  • Net Transport 2.64...
  • Advanced SystemCar...
  • Windows Live Messe...
  • Acronis True Image...
  • ImTOO DVD Ripper S...
  • Combined Community...
  • Fastream IQ Web/FT...
  • VirtualDub 1.8.6 B...
  • Super DVD Creator ...
  • Deluge 1.0.0.32
  • Adobe Flash Player...
  • WinPatrol 15.9.200...
  • Trend Micro Intern...
  • COMODO Internet Se...
  • WinZip 12.0 Build ...
  • Real Alternative 1...
  • Camfrog Video Chat...
  • iTunes 8.0.1.11
  • QuickTime 7.55.90.70
  • SiSoftware Sandra ...
  • Opera 9.60 Build 1...
  • EVEREST Ultimate E...
  • Google Chrome 0.3....
  • BS.Player 2.31 Bui...
  • WinRAR 3.80 Stable
  • Home / Windows / Programming / Other Programming Files
     Report spyware

    p-unit 0.1



    Downloads: 397  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.0/5)
    20 user(s)
    Developer:

    License / Price:

    Size / OS:

    Last Updated:

    Category:
    Andrew Zhang | More programs
    GPL / FREE
    2.6 MB / Windows All / Unix
    May 29th, 2007, 01:01 GMT
    C: \ Programming \ Other Programming Files

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    p-unit description

     

    p-unit is an open source framework for performance benchmark and unit test

    p-unit is an open source framework for performance benchmark and unit test, which supports to run the same tests solo or concurrently, generates the result in the form of plain text, image or pdf file and tracks memory and time consumption.

    Test Suite and Test Class

    Test suite and test class are two important concepts in p-unit. p-unit does not require any special type for a test class, so every class can be a test class. Of course, it includes junit test cases. There is one special interface for special p-unit only test class - p-unitTest.

    p-unit executes a normal test as following procedure:
    · invoke setUp if there is.
    · invoke the test method.
    · invoke tearDown method.

    Noticed that setUp and tearDown will also be regarded as a part of performance test. If you don't want to count them into performance data, you need to implement p-unitTest interface, which will be executed as:
    · invoke setUpBeforeWatchers.
    · invoke setAfterWatchers.
    · invoke the test method.
    · invoke tearDownBeforeWatchers.
    · invoke tearDownAfterWatchers. As the name suggests, you can put the setUp and tearDown code into the setUpBeforeWatchers and tearDownAfterWatchers.

    Time/Memory Record

    p-unit records the memory and time consumption of running a test method. There is a "watcher" concept in p-unit, which supervises the status during running the test method.

    By default, memory watcher and time watcher are installed. p-unit supports user-defined watcher too. The user only needs to implement the Watcher interface and register it to p-unit method runner.

    By default, time watcher is enabled. If you want to watch memory consumption, you need to add one line code:
    runner.methodRunner().addWatcher(new MemoryWatcher());

    Concurrent
    p-unit supports to run the test concurrently. How to write it? You DON'T need to write anything about concurrent in your test - just the same as a normal test. You only need to use p-unitConcurrentRunner to run your test concurrently. For more detail, please refer to Runner.

    Runner

    Runner is the core concept of p-unit. You need a runner to run your test. By default, there are two different runners - solo runner and concurrent runner, so that one test can be executed solo and concurrently.

    Is it complex to launch a runner? ONE line code:

    new SoloRunner().run(MyTest.class); or new ConcurrentRunner().run(MyTest.class);

    By default, p-unitConcurrentRunner starts up 10 threads to execute the test method. You can configure it in the constructor of p-unitConcurrentRunner(int threadCount), and you can even do fine control in your test class.

    If you need to execute different test class with different thread count, you only need to implement Concurrent interface for your test, which requires to return concurrentCount.

     


    TAGS:

    memory consumption tracker | benchmark test | benchmark framework | p-unit | benchmark | tracker

    Related downloads IT News Popular downloads New additions   Latest reviews  
    PerformanceTest 6.1.Build 1018
    Fast, easy to use, PC speed testing and benchmarking program
    Randy's Benchmark 2.0
    lets you test the speed of various machine functions
    p-unit 0.1
    p-unit is an open source framework for performance benchmark and unit test
    Dr. Hardware Sysinfo 9.0e
    Dr. Hardware Sysinfo displays information about your system, including benchmark tests


    HTML code for linking to this page:


    Go to top



    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM