Deutsch English Français Italiano |
<20240529012456.000003ce@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: xxd -i vs DIY Was: C23 thoughts and opinions Date: Wed, 29 May 2024 01:24:56 +0300 Organization: A noiseless patient Spider Lines: 40 Message-ID: <20240529012456.000003ce@yahoo.com> References: <v2l828$18v7f$1@dont-email.me> <00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com> <v2lji1$1bbcp$1@dont-email.me> <87msoh5uh6.fsf@nosuchdomain.example.com> <f08d2c9f-5c2e-495d-b0bd-3f71bd301432@gmail.com> <v2nbp4$1o9h6$1@dont-email.me> <v2ng4n$1p3o2$1@dont-email.me> <87y18047jk.fsf@nosuchdomain.example.com> <87msoe1xxo.fsf@nosuchdomain.example.com> <v2sh19$2rle2$2@dont-email.me> <87ikz11osy.fsf@nosuchdomain.example.com> <v2v59g$3cr0f$1@dont-email.me> <20240528144118.00002012@yahoo.com> <v34odg$kh7a$1@dont-email.me> <20240528185624.00002494@yahoo.com> <v359f1$nknu$1@dont-email.me> <20240528232315.00006a58@yahoo.com> <v35kkl$pis1$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Wed, 29 May 2024 00:24:59 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5312032778bda400147ee6d9907947d6"; logging-data="829466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197VKfxaV0LwVQUeAWEw+T6TkNdr0FqBE0=" Cancel-Lock: sha1:BB2Nxk5bXePCpJ/yPAbSLnVXrzo= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 2867 On Tue, 28 May 2024 23:08:22 +0100 bart <bc@freeuk.com> wrote: > On 28/05/2024 21:23, Michael S wrote: > > On Tue, 28 May 2024 19:57:38 +0100 > > bart <bc@freeuk.com> wrote: > > > > >> OK, I had go with your program. I used a random data file of > >> exactly 100M bytes. > >> > >> Runtimes varied from 4.1 to 5 seconds depending on compiler. The > >> fastest time was with gcc -O3. > > > > > It sounds like your mass storage device is much slower than aging > > SSD on my test machine and ALOT slower than SSD of David Brown. > > > My machine uses an SSD. SSDs are not created equal. Especially for writes. > > However the tests were run on Windows, so I ran your program again > under WSL; now it took 14 seconds (using both gcc-O3 and gcc-O2). > > 3 times slower ?! I never tested it myself, but I heard that there is a significant difference in file access speed between WSL's own file system and mounted Windows directories. The difference under WSL is not as big as under WSL2 where they say that access of mounted Windows filesystem is very slow, but still significant. I don't know if it applies to all file sizes or only to accessing many small files.