Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: Ruby/Forth challenge for WJ Date: Thu, 14 Jan 2016 15:31:46 -0800 Organization: A noiseless patient Spider Lines: 18 Message-ID: <87io2vu49p.fsf@nightsong.com> References: <35f4686c-f2c4-4ed8-9c46-2238645b9b97@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="560a36ee31cc4bcf69e115b311f0cc5c"; logging-data="5179"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XZ+Ao+/bVGZ9Dv9FpGGVU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:7+YLyTq6fzx9FlYBHXlGfqxr2I4= sha1:cQxDUXO1sMhaqIpl3ndZQ1QpJfw= Xref: csiph.com comp.lang.forth:44882 "WJ" writes: > Here's an OCaml version... let size = 99_000_000 ;; ... > ==== Output: (on an old winXP computer) ==== > Array filled in 2.953 seconds. > Bytes counted in 0.266 seconds. On i7-3770: Array filled in 3.808 seconds. Bytes counted in 0.220 seconds. With size changed to 256MiB: Array filled in 10.321 seconds. Bytes counted in 0.596 seconds. What is going on here? The i7 should be way faster than an XP-generation machine. What cpu does the XP machine have? Anyway, the speed is pretty good. I might try using ocaml.