Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to measure performance improvement over unbuffered file I/O?  RSS feed

 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a piece of code that does quite a lot of file I/O. The application is running on Solaris. Gotten a lot of high system CPU utilization and read somewhere that this is due to unbuffered I/Os. So I rewrote the code and uses buffers for it.

How do I quantitatively shows that the buffered codes is better than the unbuffered codes? I could simply roll the new codes out to production, but thats really not the ideal case since I don't have any hard figures to show that the codes would fix the high system CPU usages.

Anyone has any insights on this?
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Platform Performance discusses benchmarking IO here
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! Would there be a PDF version? Prefer to print out & read offline.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!