octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60984] Load function on Windows is significan


From: Maxim Smolskij
Subject: [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux
Date: Wed, 28 Jul 2021 15:01:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60984>

                 Summary: Load function on Windows is significantly slower
than on Linux
                 Project: GNU Octave
            Submitted by: mithridat
            Submitted on: Ср 28 июл 2021 19:01:37
                Category: Performance
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: Mithridat
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I ran following script on GNU Octave, version 6.2.0:
tic
A = rand(1000, 1000);
toc

tic
save(‘A.txt’, ‘A’);
toc

tic
B = load(‘A.txt’);
toc

And got following results:

Windows 10:
Elapsed time is 0.010767 seconds.
Elapsed time is 1.90084 seconds.
Elapsed time is 19.3035 seconds.

Ubuntu 20.04:
Elapsed time is 0.011447 seconds.
Elapsed time is 0.636885 seconds.
Elapsed time is 0.873379 seconds.

So, on Windows load function is more than 20 times slower than on Linux (20
seconds vs. 1 second).

For binary files got following results:
Windows 10:
Elapsed time is 0.012146 seconds.
Elapsed time is 0.00397396 seconds.
Elapsed time is 0.0132461 seconds.

Ubuntu 20.04:
Elapsed time is 0.019496 seconds.
Elapsed time is 0.00729489 seconds.
Elapsed time is 0.00489092 seconds.

So, it’s hundreds of times faster than for text files, there are almost
equal results for both operation systems and file size decreased from 20
megabytes to 8 megabytes.

Can anyone please express his ideas about such huge advantage of binary files
over text files and what Windows delay for text files may be related with?
(and can this delay be significantly reduced?)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60984>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]