Advertisement

Interesting Benchmarks

Started by August 15, 2000 01:40 PM
-1 comments, last by LeeIsMe 24 years, 4 months ago
Everyone is always asking how fast is things are, so I decided I would actually run some tests. The first one compares straight c++ calls to java native calls of those functions. The second test compares straight c++ functions to function pointers to virtual functions. ------------------------------------------ C++ Empty Function 2108 ms C++ Function with return type of int and arg int 2168 ms Java Native calls of the above functions Empty 7640 Function with arg and return int 8450 ms ----------------------------------------- C++ Empty Function 2068 ms Function Pointer 2218 ms Base Virtual 2472 ms Derived Virtual 2295 ms ----------------------------------------- All the tests had 100,000,000 iterations in a for loop on my athlon 500 processor. Edited by - LeeIsMe on 8/15/00 2:16:40 PM

This topic is closed to new replies.

Advertisement