Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3277540
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:22:49+00:00 2026-05-17T19:22:49+00:00

What ist the fastest way to copy a big number of files in Java.

  • 0

What ist the fastest way to copy a big number of files in Java. So far I have used file streams and nio. Overall streams seem to be faster than nio. What experiences did you make so far?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:22:50+00:00Added an answer on May 17, 2026 at 7:22 pm

    http://www.baptiste-wicht.com/2010/08/file-copy-in-java-benchmark/ might get you your answer.

    For the benchmark, I made the tests using different files.

    1. Little file (5 KB)
    2. Medium file (50 KB)
    3. Big file (5 MB)
    4. Fat file (50 MB)
    5. And an enormous file (1.3 GB) only binary

    And I made the tests first using text files and then using binary files. I made the tests using in three modes :

    1. On the same hard disk. It’s an IDE Hard Disk of 250 GB with 8 MB of cache. It’s formatted in Ext4.
    2. Between two disk. I used the first disk and an other SATA Hard Disk of 250 GB with 16 MB of cache. It’s formatted in Ext4.
    3. Between two disk. I used the first disk and an other SATA Hard Disk of 1 TB with 32 MB of cache. It’s formatted using NTFS.

    I used a benchmark framework, described here, to make the tests of all the methods. The tests have been made on my personal computer (Ubuntu 10.04 64 bits, Intel Core 2 Duo 3.16 GHz, 6 Go DDR2, SATA Hard Disks). The Java version used is a Java 7 64 bits Virtual Machine…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is ist possible to plot with strings as x-axe? I have the following file:
What ist most concise way to read the contents of a file or input
I have observed following error logs in one of log files 2012-01-31 10:52:46,424 IST
ist there a way to get a change notification if an attached property changed?
I have a value like the following Mon Jun 18 00:00:00 IST 2012 and
ist it possible to do a 10-fold cross-validation with svmmulticlass or do I have
My Java web application ( myapp.war ) ist deployed by placing it into the
Environment: Visual Studio 2008 SP1 I have the following line in my text file:
Is there any way to get lists of all timezones IST, ET etc. I
Currently all my models are in models.py. Ist becomming very messy. Can i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.