Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Benchmarking U++
Benchmarking U++ [message #7064] Mon, 11 December 2006 01:00 Go to next message
mirek is currently offline  mirek
Messages: 14263
Registered: November 2005
Ultimate Member
I have spend some time providing some comparison of U++ Core vs standard C++ library:

http://www.ultimatepp.org/www$uppweb2$vsstd$en-us.html

I would like if some STL expert would have checked my STL code if it is really the optimal solution. If this first pass is OK, I will try to submit the page to alt.lang.c++.moderated to further review (and then maybe we can make it an article).

Mirek
Re: Benchmarking U++ [message #7099 is a reply to message #7064] Wed, 13 December 2006 22:24 Go to previous message
mirek is currently offline  mirek
Messages: 14263
Registered: November 2005
Ultimate Member
Update:

I have tried commenting out parts of benchmark to get timings for separate facilities. I get (MSC71, in ms, 4KB input file, 120 map entries):

C++ standard library, std::map:
stream: 1813
string: 530
map: 1657
sort: 0 (std::map is sorted)

U++ Core:
stream: 578
string: 422
map: 640
sort: 360

Now really surprising is the stream difference. I always thought that reimplementing stream library for U++ is the least tenable wheel-reinventing aspect of the platform. Maybe I was wrong...

I think the problem is those stupid "ascii"/"binary" modes of Windows platform, which disallow really effective inlined gets. OTOH, that was one of primary reasons to reinvent the wheel.

Mirek
Previous Topic: Endian specific source changes, for Universal support.
Next Topic: U++ as web platform
Goto Forum:
  


Current Time: Sun Jun 29 23:00:32 CEST 2025

Total time taken to generate the page: 0.03903 seconds