• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java File Splitter and Joiner

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have recently programmed a file splitter cum joiner.
It reads in a file and splits it into user defined number of parts(of almost equal size).
Works on both windows and linux.
Now the problem iam facing is that i have no means to benchmark the performance(speed) of the splitter. It basically uses BufferInput/Output Stream with a custom 8Kb buffer(without which it runs at a snails pace). On my linux machine it takes less than a minute to split 500 Mb file. But then again a friend of mine who used it took more that a minute to split a 3MB file!! yikes..
Could a few people in here download and tell me about how it functions..as in performance test?
The Jar and Source(zip) are both here.
http://sourceforge.net/projects/tfsj/
Thanks
Tanmay
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tanmay Chaudhry wrote: it took more that a minute to split a 3MB file!! yikes..



Is this good? Is it bad? I can't tell.
Have you compared the relative performance of the two machines, especially their file systems?
Have you compared your code's performance to other file splitting apps?
 
Tanmay Chaudhry
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I meant to say that on my machine it is giving me really good performance (500MB in less than a Minute). But then again on my friends pc(old hardware) it took over a minute for a 3MB file.
So what i basically meant was that is THIS machine dependent? i mean obviously she doesn't have that bad hardware. So thats why I wanted people to give it a go and compare results on different machines.
And I have compared to other apps. On my pc its more or less the same. a few seconds here there..

p.s-Iam a newbie. This is my first full program and iam not that experienced so sorry if i can't explain myself properly.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tanmay Chaudhry wrote:So what i basically meant was that is THIS machine dependent? i mean obviously she doesn't have that bad hardware.



How do you know that without doing other benchmarks to see what the relative performance is?

Tanmay Chaudhry wrote:
p.s-Iam a newbie. This is my first full program and iam not that experienced so sorry if i can't explain myself properly.



Have a look at our FAQ, HowToAskQuestionsOnJavaRanch. The better question you ask, the more help we can be.
 
Tanmay Chaudhry
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok never mind..my problem was solved..
her pc had serious problems..its working fine on other computers..
ty..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic