Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Decaffeinated coffee? Just Say No.


computers / comp.os.vms / Re: VMS benchmarks

SubjectAuthor
* VMS benchmarksArne Vajhøj
+* Re: VMS benchmarksSimon Clubley
|`* Re: VMS benchmarksArne Vajhøj
| `* Re: VMS benchmarksArne Vajhøj
|  `- Re: VMS benchmarksSimon Clubley
+* Re: VMS benchmarksArne Vajhøj
|`- Re: VMS benchmarksArne Vajhøj
`- Re: VMS benchmarksArne Vajhøj

1
VMS benchmarks

<ukqpe5$u0ea$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31971&group=comp.os.vms#31971

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!nntp.comgw.net!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: VMS benchmarks
Date: Wed, 6 Dec 2023 16:35:01 -0500
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <ukqpe5$u0ea$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Dec 2023 21:35:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1a3f0ffaec82303cfbe317563f421b3f";
logging-data="983498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y9JrPBy/E+ak7ivNZCGg0CeK6D8fMdUM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CG6ii9j6pQ5Xth43058007khDMk=
Content-Language: en-US
 by: Arne Vajhøj - Wed, 6 Dec 2023 21:35 UTC

Over the summer I made a number of posts with benchmark results
and code - some about compiler optimization and some about IO.

I decided to format it nicely and publish.

Result:

https://www.vajhoej.dk/arne/articles/vmsbm1.html
https://www.vajhoej.dk/arne/articles/vmsbm2.html

Arne

Re: VMS benchmarks

<uksha8$197g5$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31982&group=comp.os.vms#31982

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.nntp4.net!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Thu, 7 Dec 2023 13:28:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uksha8$197g5$2@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Dec 2023 13:28:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8f197b527d8caa437a0104fafc881446";
logging-data="1351173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fwCsFCwTC2jgN87L/6RAk3puV03J7Kyk="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:4qE6KTu6vuiWgLyjqA1tOR+DfNE=
 by: Simon Clubley - Thu, 7 Dec 2023 13:28 UTC

On 2023-12-06, Arne Vajhøj <arne@vajhoej.dk> wrote:
> Over the summer I made a number of posts with benchmark results
> and code - some about compiler optimization and some about IO.
>
> I decided to format it nicely and publish.
>
> Result:
>
> https://www.vajhoej.dk/arne/articles/vmsbm1.html
> https://www.vajhoej.dk/arne/articles/vmsbm2.html
>

Your source code links don't work unless Javascript is enabled (and
enabled for a Google-owned domain). :-)

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: VMS benchmarks

<uktdne$1dnp8$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31993&group=comp.os.vms#31993

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Thu, 7 Dec 2023 16:33:36 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uktdne$1dnp8$1@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me> <uksha8$197g5$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Dec 2023 21:33:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="67fcca27707bb5fe5462f4ec6dd26b6d";
logging-data="1498920"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/s9dF9UspovijrNHkvNjrlQkpc3T0p+oo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:22I6O8fi7ea8CjXiZk48vdj1kBs=
In-Reply-To: <uksha8$197g5$2@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Thu, 7 Dec 2023 21:33 UTC

On 12/7/2023 8:28 AM, Simon Clubley wrote:
> On 2023-12-06, Arne Vajhøj <arne@vajhoej.dk> wrote:
>> Over the summer I made a number of posts with benchmark results
>> and code - some about compiler optimization and some about IO.
>>
>> I decided to format it nicely and publish.
>>
>> Result:
>>
>> https://www.vajhoej.dk/arne/articles/vmsbm1.html
>> https://www.vajhoej.dk/arne/articles/vmsbm2.html
>
> Your source code links don't work unless Javascript is enabled (and
> enabled for a Google-owned domain). :-)

I use a bit of JavaScript and CSS.

That is a choice I have made.

I use jQuery from Google CDN.

I could use my own copy instead. I will do that.

Arne

Re: VMS benchmarks

<uktlem$1ekpg$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=31994&group=comp.os.vms#31994

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Thu, 7 Dec 2023 18:45:28 -0500
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <uktlem$1ekpg$1@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me> <uksha8$197g5$2@dont-email.me>
<uktdne$1dnp8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Dec 2023 23:45:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="576726f7d90c73e62d82b3901b3ce09a";
logging-data="1528624"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18T0FDlHj3VldtwBlKbLC67R0/AkCS4LBE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NJUD8/tnEligbX6WWG/2frgtMW0=
Content-Language: en-US
In-Reply-To: <uktdne$1dnp8$1@dont-email.me>
 by: Arne Vajhøj - Thu, 7 Dec 2023 23:45 UTC

On 12/7/2023 4:33 PM, Arne Vajhøj wrote:
> On 12/7/2023 8:28 AM, Simon Clubley wrote:
>> On 2023-12-06, Arne Vajhøj <arne@vajhoej.dk> wrote:
>>> Over the summer I made a number of posts with benchmark results
>>> and code - some about compiler optimization and some about IO.
>>>
>>> I decided to format it nicely and publish.
>>>
>>> Result:
>>>
>>> https://www.vajhoej.dk/arne/articles/vmsbm1.html
>>> https://www.vajhoej.dk/arne/articles/vmsbm2.html
>>
>> Your source code links don't work unless Javascript is enabled (and
>> enabled for a Google-owned domain). :-)
>
> I use a bit of JavaScript and CSS.
>
> That is a choice I have made.
>
> I use jQuery from Google CDN.
>
> I could use my own copy instead. I will do that.

I have updated these two article to use my own copy of jquery.

Better?

If yes then I can update all the rest.

Arne

Re: VMS benchmarks

<ukv52f$1odn7$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32001&group=comp.os.vms#32001

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Fri, 8 Dec 2023 13:18:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <ukv52f$1odn7$3@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me> <uksha8$197g5$2@dont-email.me> <uktdne$1dnp8$1@dont-email.me> <uktlem$1ekpg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 8 Dec 2023 13:18:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2c74fceef364431858a8cdc42c1f92d5";
logging-data="1849063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I6Lit4xvaZzCOP4TqmqCL8e10t9982rw="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:+kTfPs1xEpG0O/CrnSyIrjxXAbI=
 by: Simon Clubley - Fri, 8 Dec 2023 13:18 UTC

On 2023-12-07, Arne Vajhøj <arne@vajhoej.dk> wrote:
>
> I have updated these two article to use my own copy of jquery.
>
> Better?
>
> If yes then I can update all the rest.
>

Yes. Much better.

In addition to the primary benefit of avoiding the Google trackers, it
also means you, and not a third party, are in control of what gets
delivered to users of your website.

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: VMS benchmarks

<ulhquk$1umha$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32182&group=comp.os.vms#32182

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Fri, 15 Dec 2023 10:21:56 -0500
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <ulhquk$1umha$2@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Dec 2023 15:21:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aee2bb4a5ae2ac1a5ab432731eb278d2";
logging-data="2054698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YSpr3OGhDmxWwNLBwI/FGWNXFMG5zT80="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dhvKPexp9G2m2xYtB6nRM7dIYkY=
In-Reply-To: <ukqpe5$u0ea$1@dont-email.me>
Content-Language: en-US
 by: Arne Vajhøj - Fri, 15 Dec 2023 15:21 UTC

On 12/6/2023 4:35 PM, Arne Vajhøj wrote:
> Over the summer I made a number of posts with benchmark results
> and code - some about compiler optimization and some about IO.
>
> I decided to format it nicely and publish.
>
> Result:
>
> https://www.vajhoej.dk/arne/articles/vmsbm1.html

I have updated with some Groovy numbers.

Rather impressive numbers.

Groovy out of the box is OK.

Groovy with the critical functions marked with @CompileStatic
(requires all variables to have an explicit type) performs great.

I think it is a pretty cool feature to be able to write
both traditional script style code without any explicit type
information and put explicit type information and an
annotation on a performance critical function to get
compiled language performance.

> https://www.vajhoej.dk/arne/articles/vmsbm2.html

Arne

Re: VMS benchmarks

<ulhs7g$1v1nc$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32183&group=comp.os.vms#32183

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Fri, 15 Dec 2023 10:43:43 -0500
Organization: A noiseless patient Spider
Lines: 151
Message-ID: <ulhs7g$1v1nc$1@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me> <ulhquk$1umha$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Dec 2023 15:43:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aee2bb4a5ae2ac1a5ab432731eb278d2";
logging-data="2066156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19k8VkjijhlzUnWLwfQb/d0CsIlkg5+sMk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JssJRolETnUq6zMzKlCPSClyoCc=
Content-Language: en-US
In-Reply-To: <ulhquk$1umha$2@dont-email.me>
 by: Arne Vajhøj - Fri, 15 Dec 2023 15:43 UTC

On 12/15/2023 10:21 AM, Arne Vajhøj wrote:
> On 12/6/2023 4:35 PM, Arne Vajhøj wrote:
>> https://www.vajhoej.dk/arne/articles/vmsbm1.html
>
> I have updated with some Groovy numbers.
>
> Rather impressive numbers.
>
> Groovy out of the box is OK.
>
> Groovy with the critical functions marked with @CompileStatic
> (requires all variables to have an explicit type) performs great.
>
> I think it is a pretty cool feature to be able to write
> both traditional script style code without any explicit type
> information and put explicit type information and an
> annotation on a performance critical function to get
> compiled language performance.

Here are another test with some even more
impressive numbers.

And note this is stuff running on VMS x86-64 9.2-1 today.

C: 6.3 s, 6.3 s, 6.0 s, 4.1 s (depending on compiler and optimization)
Groovy script style : 51 s
Groovy with type declarations : 38 s
Groovy with type declarations and @CompileStatic : 3.5 s
Groovy calling Java code : 3.4 s

So one can write compact script code at a Python level
and get C performance of a performance critical function
by just declaring types explicit and put an annotation on.

Obviously do not conclude too much from a benchmark of
a function with one line of code.

Code and test output below.

Arne

$ type fib.c
#include <stdio.h>

#include "high_res_timer.h"

int fib(int n) {
return n < 2 ? n : fib(n - 1) + fib(n - 2);
}

static const int REP = 3;

int main()
{ printf("C:\n");
for(int i = 0; i < REP; i++)
{
TIMECOUNT_T t0 = GET_TIMECOUNT;
int ans = fib(45);
TIMECOUNT_T t1 = GET_TIMECOUNT;
printf("fib(45) = %d took %f seconds.\n", ans, (t1 - t0) * 1.0
/ UNITS_PER_SECOND);
}
return 0;
}

$ cc fib
$ link fib
$ run fib
C:
fib(45) = 1134903170 took 6.289937 seconds.
fib(45) = 1134903170 took 6.349937 seconds.
fib(45) = 1134903170 took 6.329937 seconds.
$ cc/opt=level:5 fib
$ link fib
$ run fib
C:
fib(45) = 1134903170 took 6.489935 seconds.
fib(45) = 1134903170 took 6.299937 seconds.
fib(45) = 1134903170 took 6.349937 seconds.
$ clang fib.c
$ link fib
$ run fib
C:
fib(45) = 1134903170 took 6.039940 seconds.
fib(45) = 1134903170 took 5.999940 seconds.
fib(45) = 1134903170 took 5.959940 seconds.
$ clang "-O3" fib.c
$ link fib
$ run fib
C:
fib(45) = 1134903170 took 4.049959 seconds.
fib(45) = 1134903170 took 4.089959 seconds.
fib(45) = 1134903170 took 4.079959 seconds.
$ type Fib.groovy
def fib1(n) {
return n < 2 ? n : fib1(n - 1) + fib1(n - 2)
}

int fib2(int n) {
return n < 2 ? n : fib2(n - 1) + fib2(n - 2)
}

@groovy.transform.CompileStatic
int fib3(int n) {
return n < 2 ? n : fib3(n - 1) + fib3(n - 2)
}

REP = 3

def test(lbl, f) {
println("${lbl}:")
for(i in 1..REP) {
t0 = System.currentTimeMillis()
ans = f(45)
t1 = System.currentTimeMillis()
println("fib(45) = ${ans} took ${(t1 - t0) / 1000.0} seconds.")
}
}

test("Groovy Python style", { n -> fib1(n) })
test("Groovy voluntary Java style", { n -> fib2(n) })
test("Groovy enforced Java style", { n -> fib3(n) })
j = new FibJ()
test("Java", { n -> j.fib4(n) })
$ type FibJ.java
public class FibJ {
public int fib4(int n) {
return n < 2 ? n : fib4(n - 1) + fib4(n - 2);
}
} $ javac FibJ.java
$ groovy Fib.groovy
Groovy Python style:
fib(45) = 1134903170 took 55.379 seconds.
fib(45) = 1134903170 took 50.65 seconds.
fib(45) = 1134903170 took 50.549 seconds.
Groovy voluntary Java style:
fib(45) = 1134903170 took 41.21 seconds.
fib(45) = 1134903170 took 38.139 seconds.
fib(45) = 1134903170 took 38.24 seconds.
Groovy enforced Java style:
fib(45) = 1134903170 took 3.49 seconds.
fib(45) = 1134903170 took 3.53 seconds.
fib(45) = 1134903170 took 3.38 seconds.
Java:
fib(45) = 1134903170 took 3.75 seconds.
fib(45) = 1134903170 took 3.44 seconds.
fib(45) = 1134903170 took 3.37 seconds.

Re: VMS benchmarks

<uua9qp$19ugi$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33929&group=comp.os.vms#33929

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS benchmarks
Date: Sat, 30 Mar 2024 20:13:13 -0400
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uua9qp$19ugi$1@dont-email.me>
References: <ukqpe5$u0ea$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Mar 2024 00:13:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8ac380e968d70e5d59431592c36b8f03";
logging-data="1374738"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dJEaKUah1TqNbSH4pct8jHfOdipuKyq8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/doEmHFf+nCGFYfLdikFnhWtlnM=
Content-Language: en-US
In-Reply-To: <ukqpe5$u0ea$1@dont-email.me>
 by: Arne Vajhøj - Sun, 31 Mar 2024 00:13 UTC

On 12/6/2023 4:35 PM, Arne Vajhøj wrote:
> Over the summer I made a number of posts with benchmark results
> and code - some about compiler optimization and some about IO.
>
> I decided to format it nicely and publish.
>
> Result:
>
> https://www.vajhoej.dk/arne/articles/vmsbm1.html

Updated with measurement of release compilers. The release
compilers perform a lot better than the field test
compilers.

> https://www.vajhoej.dk/arne/articles/vmsbm2.html

Arne

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor