io_splice RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: ruby.io.splice@librelist.com
Subject: Re: Some benchmarks
Date: Mon, 27 Dec 2010 18:33:39 +0100	[thread overview]
Message-ID: <AANLkTimBrXN-6BXK-ifaCLFrznQhQqXqW1dhJq0CtHFO@mail.gmail.com> (raw)
In-Reply-To: AANLkTinWjEtU-aa-paHaw042jrt-AveWzwNfQqfhM1dS@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1850 bytes --]

2010/12/23 Iñaki Baz Castillo <ibc@aliax.net>:
>> Try it on a tmpfs mount.
>
> Yes, that would be my next test.

Hummm, I get "non expected" results when using a tmpfs as destination
for the copy. I attach a new test file which makes usage of IO splice
in different ways ("manual", using IO objects and using file names).

Results:


Test data:
- Source file size:  464 bytes
- Number of iterations:  1
Results:
- FileUtils.cp:                     0.0004868507385253906
- FileUtils.copy_stream:            7.581710815429688e-05
- IO.splice (manual):               0.0004825592041015625
- IO.splice (using IO):             0.00017380714416503906
- IO.splice (using file names):     0.00012922286987304688


Test data:
- Source file size:  464 bytes
- Number of iterations:  100
Results:
- FileUtils.cp:                     0.005738258361816406
- FileUtils.copy_stream:            0.0026025772094726562
- IO.splice (manual):               0.038815975189208984
- IO.splice (using IO):             0.016385793685913086
- IO.splice (using file names):     0.009386062622070312


Test data:
- Source file size:  1156222 bytes
- Number of iterations:  1
Results:
- FileUtils.cp:                     0.0017499923706054688
- FileUtils.copy_stream:            0.0020220279693603516
- IO.splice (manual):               0.001650094985961914
- IO.splice (using IO):             0.001832723617553711
- IO.splice (using file names):     0.0017614364624023438


Test data:
- Source file size:  1156222 bytes
- Number of iterations:  100
Results:
- FileUtils.cp:                     0.20581936836242676
- FileUtils.copy_stream:            0.19777441024780273
- IO.splice (manual):               0.1709754467010498
- IO.splice (using IO):             0.19835829734802246
- IO.splice (using file names):     0.1958324909210205

-- 
Iñaki Baz Castillo
<ibc@aliax.net>

  parent reply	other threads:[~2010-12-27 17:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTi=M+qGa7G1PvYyB+fbJUzrersJQwtDkct3hZEiy@mail.gmail.com>
2010-12-22 14:01 ` Some benchmarks Iñaki Baz Castillo
2010-12-22 19:56   ` Eric Wong
2010-12-23 15:41     ` Iñaki Baz Castillo
2010-12-23 18:06       ` Eric Wong
2010-12-27 10:01         ` Iñaki Baz Castillo
2010-12-27 17:33       ` Iñaki Baz Castillo [this message]
2010-12-27 21:38         ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/ruby_io_splice/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimBrXN-6BXK-ifaCLFrznQhQqXqW1dhJq0CtHFO@mail.gmail.com \
    --to=ibc@aliax.net \
    --cc=ruby.io.splice@librelist.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_io_splice.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).