eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingJak zrobić test za pomocą PractRand? › Re: Jak zrobić test za pomocą PractRand?
  • X-Received: by 2002:a37:8044:: with SMTP id b65mr13666267qkd.150.1629559102278; Sat,
    21 Aug 2021 08:18:22 -0700 (PDT)
    X-Received: by 2002:a37:8044:: with SMTP id b65mr13666267qkd.150.1629559102278; Sat,
    21 Aug 2021 08:18:22 -0700 (PDT)
    Path: news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!3.eu.feeder.erj
    e.net!feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.uzoreto.com!t
    r3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!bo
    rder1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.
    com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
    Newsgroups: pl.comp.programming
    Date: Sat, 21 Aug 2021 08:18:22 -0700 (PDT)
    In-Reply-To: <9...@g...com>
    Injection-Info: google-groups.googlegroups.com; posting-host=37.128.16.171;
    posting-account=xjvq9QoAAAATMPC2X3btlHd_LkaJo_rj
    NNTP-Posting-Host: 37.128.16.171
    References: <6...@g...com>
    <0...@g...com>
    <1...@g...com>
    <f...@g...com>
    <5...@g...com>
    <2...@g...com>
    <f...@g...com>
    <4...@g...com>
    <5...@g...com>
    <6...@g...com>
    <9...@g...com>
    User-Agent: G2/1.0
    MIME-Version: 1.0
    Message-ID: <6...@g...com>
    Subject: Re: Jak zrobić test za pomocą PractRand?
    From: "M.M." <m...@g...com>
    Injection-Date: Sat, 21 Aug 2021 15:18:22 +0000
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable
    Lines: 95
    Xref: news-archive.icm.edu.pl pl.comp.programming:215513
    [ ukryj nagłówki ]

    On Saturday, August 21, 2021 at 4:53:36 PM UTC+2, o...@g...com wrote:
    > sobota, 21 sierpnia 2021 o 00:11:26 UTC+2 M.M. napisał(a):
    > > On Friday, August 20, 2021 at 11:56:42 PM UTC+2, o...@g...com wrote:
    > > > Jeśli zrobiłem wszystko dobrze, to mam debug error - "abort() has been called".
    Próbowałem opcji z plikiem .data.
    > > Nie ma w pliku jakiś innych znaków niż 0 i 1? Nie ma np. znaku końca linii?
    > >
    > > U siebie zmniejszyłem bufor do jednego bajtu:
    > > #define SIZE_OUT (1<<0)
    > >
    > > I uruchomiłem taką komendę:
    > > echo '01010101111111110000000010101001' | ./01ToBin
    > >
    > > Nic się nie wywaliło, wyrzuciło na ekran krzaczki - zgodnie z oczekiwaniami.
    > >
    > > Pozdrawiam
    > U mnie po komendzie echo '01010101111111110000000010101001' | ./konwerter.exe
    >
    > nie pokazało niczego.

    Nie pokazało, bo ten minimalistyczny program umie tylko czytać pełnymi buforami, albo
    konsola ukryła binarne znaki. By trzeba ustawić przed kompilacją mały rozmiar buforu,
    ale teraz to nie ma sens, bo jest już specjalny generator do testowania:

    https://github.com/mmarszik/SimpPRNG/blob/main/main.
    cpp

    U mnie nawet działa:

    ./SimpPRNG 2 | ../../01ToBin/release/01ToBin | ../../PractRand/RNG_test stdin
    RNG_test using PractRand version 0.94
    RNG = RNG_stdin, seed = unknown
    test set = core, folding = standard(unknown format)

    rng=RNG_stdin, seed=unknown
    length= 64 megabytes (2^26 bytes), time= 2.8 seconds
    no anomalies in 179 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 128 megabytes (2^27 bytes), time= 6.2 seconds
    no anomalies in 196 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 256 megabytes (2^28 bytes), time= 12.3 seconds
    no anomalies in 213 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 512 megabytes (2^29 bytes), time= 23.4 seconds
    no anomalies in 229 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 1 gigabyte (2^30 bytes), time= 45.4 seconds
    no anomalies in 248 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 2 gigabytes (2^31 bytes), time= 88.6 seconds
    no anomalies in 266 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 4 gigabytes (2^32 bytes), time= 173 seconds
    no anomalies in 282 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 8 gigabytes (2^33 bytes), time= 341 seconds
    no anomalies in 299 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 16 gigabytes (2^34 bytes), time= 683 seconds
    no anomalies in 315 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 32 gigabytes (2^35 bytes), time= 1425 seconds
    no anomalies in 328 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 64 gigabytes (2^36 bytes), time= 2808 seconds
    no anomalies in 344 test result(s)

    rng=RNG_stdin, seed=unknown
    length= 128 gigabytes (2^37 bytes), time= 5577 seconds
    no anomalies in 359 test result(s)

    ^C


    Pozdrawiam


Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: