kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #28387
Re: RICHIO performance - 3 to 30 times slower than std::ifstream
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Wed, 1 Mar 2017 18:31:45 -0500
-
In-reply-to:
<CAG1r56Lm1Ej5f8_tzevqLhA_BmHYhYJ=rawPMRwZ_1xzSxXPLA@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
On 2/19/2017 4:27 AM, John Beard wrote:
> On Sat, Feb 18, 2017 at 1:08 AM, Nox <noxfiregalaxy@xxxxxxxxx> wrote:
>> What about wxFFileInputStream instead of wxFileInputStream?
>>
>
> wxFFileInputStream appears to be about 5-6 times faster than
> wxFileInputStream, but that's still much much slower than RICHIO or
> std::ifstream.
>
> $ qa/io_benchmark/io_benchmark /tmp/all.lib 2
> IO Bench Mark Util
> Benchmark file: /tmp/all.lib
> Repetitions: 2
> std::fstream 317858 lines, acc: 25103384 in 16 ms
> std::fstream, reused 317858 lines, acc: 25103384 in 16 ms
> RICHIO 317858 lines, acc: 25103384 in 91 ms
> RICHIO, reused 317858 lines, acc: 25103384 in 90 ms
> New fstream IO 317858 lines, acc: 25103384 in 19 ms
> New fstream IO, reused 317858 lines, acc: 25103384 in 19 ms
> wxIStream 317858 lines, acc: 25103384 in 3558 ms
> wxIStream, reused 317858 lines, acc: 25103384 in 3429 ms
> wxFFIStream 317858 lines, acc: 25103384 in 589 ms
> wxFFIStream, reused 317858 lines, acc: 25103384 in 602 ms
>
John,
Did you create a patch for your wxInputStream benchmarking code? I
would like to merge this. I think it would be a useful tool for developers.
Thanks,
wayne
Follow ups
References