• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java File Splitter and Joiner  RSS feed

 
Tanmay Chaudhry
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
Joe Ess
Bartender
Posts: 9414
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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: 9414
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
ok never mind..my problem was solved..
her pc had serious problems..its working fine on other computers..
ty..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!