Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Lack of skill dictates economy of style. -- Joey Ramone


devel / comp.lang.mumps / Re: Database speed comparison

SubjectAuthor
* Database speed comparisonkdtop
`* Re: Database speed comparisonrtweed
 `* Re: Database speed comparisonkdtop
  `* Re: Database speed comparisonK.S. Bhaskar
   +* Re: Database speed comparisonrtweed
   |`* Re: Database speed comparisonK.S. Bhaskar
   | `* Re: Database speed comparisonAkabouncue
   |  `* Re: Database speed comparisonkdtop
   |   `- Re: Database speed comparisonK.S. Bhaskar
   `* Re: Database speed comparisonpahihu
    `* Re: Database speed comparisonK.S. Bhaskar
     `- Re: Database speed comparisonK.S. Bhaskar

1
Database speed comparison

<28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=101&group=comp.lang.mumps#101

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:7f01:: with SMTP id f1mr20136145qtk.362.1626658446446;
Sun, 18 Jul 2021 18:34:06 -0700 (PDT)
X-Received: by 2002:a05:6830:1c69:: with SMTP id s9mr16963686otg.185.1626658446124;
Sun, 18 Jul 2021 18:34:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Sun, 18 Jul 2021 18:34:05 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2603:3011:e00:7a00:7cab:412f:c39d:4098;
posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 2603:3011:e00:7a00:7cab:412f:c39d:4098
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
Subject: Database speed comparison
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 19 Jul 2021 01:34:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: kdtop - Mon, 19 Jul 2021 01:34 UTC

I came across a post on Hackernews (https://news.ycombinator.com/item?id=27872575) about the time needed to insert "1 billion" rows into a relational database (SQLite) -- although it seems 1 billion was too ambitious and the article actually only gives results for 0.1 billion (100 M) writes.

Here is the actual article: https://avi.im/blag/2021/fast-sqlite-inserts/

The data stored is:
key -- integer
s -- 6 character string
age - integer // 5, 10, or 15
active - integer //0 or 1

The author used various languages with widely ranging speed results. It looks like hist best speed was achieved by preparing 50 rows and posting them all at once, achieving 100 million rows in 34 .3 seconds. I didn't scrutinize his code, so may have some details wrong here. His machine was: MacBook Pro, 2019 (2.4 GHz Quad Core i5, 8GB, 256GB SSD, Big Sur 11.1)

I am wondering how fast yottadb could achieve this? Perhaps this is a fool's errand, but it interests me.

I would think this code could be used. Since the author reported using "prepared rows", I am assuming he was not generating the random values for each row each time. That would really be only a CPU test, not a database test..

new startH set startH=$h
new arr
new ct set ct=0
;//Set up array with 100 lines of random data
for quit:(ct>99) do
.. set ct=ct+1
.. new st set st=""
.. new j for j=1:1:6 set st=st_$char($r(25)+65)
.. set arr(ct)=st_"^"_($r(3)*5)+5_"^"_$r(2) ;//I think this would be ~11 bytes
;//arr should be ~11 bytes x 100 =1,100 bytes
; ;//merge 1 million instances of 100 lines each
for quit:(ct>1000000) do
.. set ct=ct+1
.. merge ^TMP(ct)=arr
write "Time= ",startH," --> ",$h,!

Anyone interested in trying this on a test system? I don't have one I am willing to run this in right now.

I think the total size would be 100 million x 11 bytes = 1,100,000,000 or ~1.1 gb unless I have my math wrong.

My gut feeling is that the limiting factor is going to the be the speed the operating system is able to put data out to the filesystem. The difference between SQLite, with all the optimizations the author could find and yottadb would come down to CPU cycles. And I suspect that is not the bottleneck.

Any thoughts?

Kevin T

Re: Database speed comparison

<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=102&group=comp.lang.mumps#102

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:90c:: with SMTP id v12mr23146699qkv.190.1626691517906; Mon, 19 Jul 2021 03:45:17 -0700 (PDT)
X-Received: by 2002:a05:6808:1524:: with SMTP id u36mr5890880oiw.29.1626691517673; Mon, 19 Jul 2021 03:45:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.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: comp.lang.mumps
Date: Mon, 19 Jul 2021 03:45:17 -0700 (PDT)
In-Reply-To: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:800:da00:f08d:374c:ff84:fac1; posting-account=7_GEEwoAAAA24F6PVSvhz0uWuZgymXyC
NNTP-Posting-Host: 2a00:23a8:800:da00:f08d:374c:ff84:fac1
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com>
Subject: Re: Database speed comparison
From: rob.tweed@gmail.com (rtweed)
Injection-Date: Mon, 19 Jul 2021 10:45:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
 by: rtweed - Mon, 19 Jul 2021 10:45 UTC

Please see this: https://github.com/robtweed/global_storage/blob/master/Performance.md#basic-global-set-write-performance-test

Read the full blog for context: https://github.com/robtweed/global_storage

Note that performance using raw M code will be even faster: 1 million key/value pair sets per second should be obtainable from YottaDB on even relatively modest hardware.

A key conclusion of the blog article is that such performance significantly exceeds even the more well-known embedded databases that are designed and considered to be ultra-fast

Whether anyone in the mainstream of IT knows or cares about this is more difficult to assess. I've seen passing interest so far, but that's about as far as it goes. I guess most people don't worry about the performance of the databases they use, at least not to the extent that they'll look beyond the usual culprits?

Still, we can only try to wake them up.

Rob

Re: Database speed comparison

<6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=103&group=comp.lang.mumps#103

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:204c:: with SMTP id d12mr14021363qka.417.1626714188362;
Mon, 19 Jul 2021 10:03:08 -0700 (PDT)
X-Received: by 2002:a9d:2968:: with SMTP id d95mr19154002otb.321.1626714188015;
Mon, 19 Jul 2021 10:03:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 19 Jul 2021 10:03:07 -0700 (PDT)
In-Reply-To: <a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.164.29.153; posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 173.164.29.153
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com> <a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
Subject: Re: Database speed comparison
From: kdtop3@gmail.com (kdtop)
Injection-Date: Mon, 19 Jul 2021 17:03:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: kdtop - Mon, 19 Jul 2021 17:03 UTC

On Monday, July 19, 2021 at 6:45:18 AM UTC-4, rtweed wrote:
> Please see this: https://github.com/robtweed/global_storage/blob/master/Performance.md#basic-global-set-write-performance-test" rel="nofollow" target="_blank">https://github.com/robtweed/global_storage/blob/master/Performance.md#basic-global-set-write-performance-test
>
> Read the full blog for context: https://github.com/robtweed/global_storage
>
> Note that performance using raw M code will be even faster: 1 million key/value pair sets per second should be obtainable from YottaDB on even relatively modest hardware.
>
> A key conclusion of the blog article is that such performance significantly exceeds even the more well-known embedded databases that are designed and considered to be ultra-fast
>
> Whether anyone in the mainstream of IT knows or cares about this is more difficult to assess. I've seen passing interest so far, but that's about as far as it goes. I guess most people don't worry about the performance of the databases they use, at least not to the extent that they'll look beyond the usual culprits?
>
> Still, we can only try to wake them up.
>
> Rob

This is a valuable write-up. Thanks for making it!

Kevin

Re: Database speed comparison

<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=104&group=comp.lang.mumps#104

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a0c:ee2a:: with SMTP id l10mr2051064qvs.22.1626989612541;
Thu, 22 Jul 2021 14:33:32 -0700 (PDT)
X-Received: by 2002:a9d:d53:: with SMTP id 77mr1210242oti.18.1626989612197;
Thu, 22 Jul 2021 14:33:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Thu, 22 Jul 2021 14:33:31 -0700 (PDT)
In-Reply-To: <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 71.162.243.192
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>
Subject: Re: Database speed comparison
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Thu, 22 Jul 2021 21:33:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: K.S. Bhaskar - Thu, 22 Jul 2021 21:33 UTC

On Monday, July 19, 2021 at 1:03:08 PM UTC-4, kdtop wrote:
> On Monday, July 19, 2021 at 6:45:18 AM UTC-4, rtweed wrote:
> > Please see this: https://github.com/robtweed/global_storage/blob/master/Performance.md#basic-global-set-write-performance-test" rel="nofollow" target="_blank">https://github.com/robtweed/global_storage/blob/master/Performance.md#basic-global-set-write-performance-test
> >
> > Read the full blog for context: https://github.com/robtweed/global_storage
> >
> > Note that performance using raw M code will be even faster: 1 million key/value pair sets per second should be obtainable from YottaDB on even relatively modest hardware.
> >
> > A key conclusion of the blog article is that such performance significantly exceeds even the more well-known embedded databases that are designed and considered to be ultra-fast
> >
> > Whether anyone in the mainstream of IT knows or cares about this is more difficult to assess. I've seen passing interest so far, but that's about as far as it goes. I guess most people don't worry about the performance of the databases they use, at least not to the extent that they'll look beyond the usual culprits?
> >
> > Still, we can only try to wake them up.
> >
> > Rob
> This is a valuable write-up. Thanks for making it!
>
> Kevin

Since programming can be therapeutic, and I felt like therapy, I decided to play a little. See https://gitlab.com/ksbhaskar/fastinsert/-/blob/main/fastinsert.m

Regards
– Bhaskar

Re: Database speed comparison

<bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=105&group=comp.lang.mumps#105

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:4e1:: with SMTP id b1mr4931362qkh.363.1627051214377;
Fri, 23 Jul 2021 07:40:14 -0700 (PDT)
X-Received: by 2002:a05:6830:3143:: with SMTP id c3mr3301598ots.229.1627051214129;
Fri, 23 Jul 2021 07:40:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 23 Jul 2021 07:40:13 -0700 (PDT)
In-Reply-To: <4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:800:da00:fce7:d12d:157d:d98e;
posting-account=7_GEEwoAAAA24F6PVSvhz0uWuZgymXyC
NNTP-Posting-Host: 2a00:23a8:800:da00:fce7:d12d:157d:d98e
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
Subject: Re: Database speed comparison
From: rob.tweed@gmail.com (rtweed)
Injection-Date: Fri, 23 Jul 2021 14:40:14 +0000
Content-Type: text/plain; charset="UTF-8"
 by: rtweed - Fri, 23 Jul 2021 14:40 UTC

That's a wee bit fast, Bhaskar!! :-) Are you going to publish some of those figures anywhere? They pretty much blow any of the "mainstream" databases clean out of the water.

Rob

Re: Database speed comparison

<daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=106&group=comp.lang.mumps#106

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:188d:: with SMTP id v13mr4455056qtc.192.1627054106373; Fri, 23 Jul 2021 08:28:26 -0700 (PDT)
X-Received: by 2002:a4a:cf07:: with SMTP id l7mr3061432oos.11.1627054106046; Fri, 23 Jul 2021 08:28:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.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: comp.lang.mumps
Date: Fri, 23 Jul 2021 08:28:25 -0700 (PDT)
In-Reply-To: <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.36.105; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.36.105
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com> <a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com> <4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com>
Subject: Re: Database speed comparison
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Fri, 23 Jul 2021 15:28:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
 by: K.S. Bhaskar - Fri, 23 Jul 2021 15:28 UTC

On Friday, July 23, 2021 at 10:40:14 AM UTC-4, rtweed wrote:
> That's a wee bit fast, Bhaskar!! :-) Are you going to publish some of those figures anywhere? They pretty much blow any of the "mainstream" databases clean out of the water.
>
> Rob

Thanks Rob. I too was pleasantly surprised by the numbers, especially on the Raspberry Pi Zero. I would like to publish benchmarks somewhere, but this is not a realistic benchmark, and one that does not lend itself to apples-to-apples comparisons. I'd like to find a nice key-value NoSQL benchmark, and make that run on YottaDB.

In any case, suggestions welcome. I did Tweet them.

Regards
– Bhaskar

Re: Database speed comparison

<63d3453f-3fdd-4943-82b9-975e3121c550n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=107&group=comp.lang.mumps#107

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a0c:c245:: with SMTP id w5mr4620169qvh.21.1627093176946;
Fri, 23 Jul 2021 19:19:36 -0700 (PDT)
X-Received: by 2002:a9d:a6c:: with SMTP id 99mr4991070otg.21.1627093176702;
Fri, 23 Jul 2021 19:19:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 23 Jul 2021 19:19:36 -0700 (PDT)
In-Reply-To: <daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=123.253.232.51; posting-account=fayZzQoAAACZuiEbpb6HBYI66CBhLXYa
NNTP-Posting-Host: 123.253.232.51
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
<daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <63d3453f-3fdd-4943-82b9-975e3121c550n@googlegroups.com>
Subject: Re: Database speed comparison
From: solokotok@gmail.com (Akabouncue)
Injection-Date: Sat, 24 Jul 2021 02:19:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Akabouncue - Sat, 24 Jul 2021 02:19 UTC

Pada Jumat, 23 Juli 2021 pukul 22.28.27 UTC+7, K.S. Bhaskar menulis:
> On Friday, July 23, 2021 at 10:40:14 AM UTC-4, rtweed wrote:
> > That's a wee bit fast, Bhaskar!! :-) Are you going to publish some of those figures anywhere? They pretty much blow any of the "mainstream" databases clean out of the water.
> >
> > Rob
> Thanks Rob. I too was pleasantly surprised by the numbers, especially on the Raspberry Pi Zero. I would like to publish benchmarks somewhere, but this is not a realistic benchmark, and one that does not lend itself to apples-to-apples comparisons. I'd like to find a nice key-value NoSQL benchmark, and make that run on YottaDB.
>
> In any case, suggestions welcome. I did Tweet them.
>
> Regards
> – Bhaskar

Re: Database speed comparison

<8e161ab9-2eb0-40f3-8d00-0a94e8eefbe4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=110&group=comp.lang.mumps#110

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a0c:f6c6:: with SMTP id d6mr26018901qvo.30.1627438668867;
Tue, 27 Jul 2021 19:17:48 -0700 (PDT)
X-Received: by 2002:a9d:d53:: with SMTP id 77mr17902455oti.18.1627438668545;
Tue, 27 Jul 2021 19:17:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 27 Jul 2021 19:17:48 -0700 (PDT)
In-Reply-To: <63d3453f-3fdd-4943-82b9-975e3121c550n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:3011:e00:7a00:cc46:fd6f:dfcd:96d0;
posting-account=siWvwQoAAACYCGtn7kPrEYinJEra-Oc0
NNTP-Posting-Host: 2603:3011:e00:7a00:cc46:fd6f:dfcd:96d0
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
<daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com> <63d3453f-3fdd-4943-82b9-975e3121c550n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8e161ab9-2eb0-40f3-8d00-0a94e8eefbe4n@googlegroups.com>
Subject: Re: Database speed comparison
From: kdtop3@gmail.com (kdtop)
Injection-Date: Wed, 28 Jul 2021 02:17:48 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: kdtop - Wed, 28 Jul 2021 02:17 UTC

Bhaskar,

These are very impressive numbers. I'd love to see them highlighted on Hackernews. I would post them, but I think to get traction, there would need to be a write-up. Here is another post I found of someone else jumping on the speed-test bandwagon.
https://blog.metaobject.com/2021/07/inserting-130m-sqlite-rows-per.html

I don't have the skill or forum to write up such an evaluation of yottadb. Any takers?

And again, Bhaksar, thanks for working on this. I love that a Raspberry pi holds it's own in terms of speed!

Kevin

On Friday, July 23, 2021 at 10:19:37 PM UTC-4, solo...@gmail.com wrote:
> Pada Jumat, 23 Juli 2021 pukul 22.28.27 UTC+7, K.S. Bhaskar menulis:
> > On Friday, July 23, 2021 at 10:40:14 AM UTC-4, rtweed wrote:
> > > That's a wee bit fast, Bhaskar!! :-) Are you going to publish some of those figures anywhere? They pretty much blow any of the "mainstream" databases clean out of the water.
> > >
> > > Rob
> > Thanks Rob. I too was pleasantly surprised by the numbers, especially on the Raspberry Pi Zero. I would like to publish benchmarks somewhere, but this is not a realistic benchmark, and one that does not lend itself to apples-to-apples comparisons. I'd like to find a nice key-value NoSQL benchmark, and make that run on YottaDB.
> >
> > In any case, suggestions welcome. I did Tweet them.
> >
> > Regards
> > – Bhaskar

Re: Database speed comparison

<205fb0ba-eca7-4b38-a4d5-371435a96fddn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=111&group=comp.lang.mumps#111

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:a544:: with SMTP id o65mr25195970qke.68.1627440637547;
Tue, 27 Jul 2021 19:50:37 -0700 (PDT)
X-Received: by 2002:a54:4895:: with SMTP id r21mr16605983oic.30.1627440637201;
Tue, 27 Jul 2021 19:50:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 27 Jul 2021 19:50:36 -0700 (PDT)
In-Reply-To: <8e161ab9-2eb0-40f3-8d00-0a94e8eefbe4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.36.105; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.36.105
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <bcb61c46-c90f-4e45-b16c-4688b41e5e5en@googlegroups.com>
<daaf954e-74df-4060-99c1-3d0bd1e416fen@googlegroups.com> <63d3453f-3fdd-4943-82b9-975e3121c550n@googlegroups.com>
<8e161ab9-2eb0-40f3-8d00-0a94e8eefbe4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <205fb0ba-eca7-4b38-a4d5-371435a96fddn@googlegroups.com>
Subject: Re: Database speed comparison
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Wed, 28 Jul 2021 02:50:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3465
 by: K.S. Bhaskar - Wed, 28 Jul 2021 02:50 UTC

On Tuesday, July 27, 2021 at 10:17:49 PM UTC-4, kdtop wrote:
> Bhaskar,
>
> These are very impressive numbers. I'd love to see them highlighted on Hackernews. I would post them, but I think to get traction, there would need to be a write-up. Here is another post I found of someone else jumping on the speed-test bandwagon.
> https://blog.metaobject.com/2021/07/inserting-130m-sqlite-rows-per.html
>
> I don't have the skill or forum to write up such an evaluation of yottadb.. Any takers?
>
> And again, Bhaksar, thanks for working on this. I love that a Raspberry pi holds it's own in terms of speed!
>
> Kevin
> On Friday, July 23, 2021 at 10:19:37 PM UTC-4, solo...@gmail.com wrote:
> > Pada Jumat, 23 Juli 2021 pukul 22.28.27 UTC+7, K.S. Bhaskar menulis:
> > > On Friday, July 23, 2021 at 10:40:14 AM UTC-4, rtweed wrote:
> > > > That's a wee bit fast, Bhaskar!! :-) Are you going to publish some of those figures anywhere? They pretty much blow any of the "mainstream" databases clean out of the water.
> > > >
> > > > Rob
> > > Thanks Rob. I too was pleasantly surprised by the numbers, especially on the Raspberry Pi Zero. I would like to publish benchmarks somewhere, but this is not a realistic benchmark, and one that does not lend itself to apples-to-apples comparisons. I'd like to find a nice key-value NoSQL benchmark, and make that run on YottaDB.
> > >
> > > In any case, suggestions welcome. I did Tweet them.
> > >
> > > Regards
> > > – Bhaskar

Kevin –

I'm working on a YottaDB blog post about it. And I'm hoping to actually set a billion nodes (i.e., insert a billion rows) in under one minute, albeit on an x86_64 PC. I suppose I could set a billion nodes on a Raspberry Pi Zero if I had the patience!

Regards
– Bhaskar

Re: Database speed comparison

<c3681cd4-231f-426d-9f4c-59022893269cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=112&group=comp.lang.mumps#112

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ad4:5965:: with SMTP id eq5mr19389429qvb.41.1627469978626;
Wed, 28 Jul 2021 03:59:38 -0700 (PDT)
X-Received: by 2002:a54:4895:: with SMTP id r21mr17705806oic.30.1627469978386;
Wed, 28 Jul 2021 03:59:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Wed, 28 Jul 2021 03:59:38 -0700 (PDT)
In-Reply-To: <4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=78.131.56.82; posting-account=5cIhGQgAAAD51vWxObfbr2Fz1M5rcgWL
NNTP-Posting-Host: 78.131.56.82
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3681cd4-231f-426d-9f4c-59022893269cn@googlegroups.com>
Subject: Re: Database speed comparison
From: pahihu@gmail.com (pahihu)
Injection-Date: Wed, 28 Jul 2021 10:59:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: pahihu - Wed, 28 Jul 2021 10:59 UTC

K.S. Bhaskar ezt írta (2021. július 22., csütörtök, 23:33:33 UTC+2):
> Since programming can be therapeutic, and I felt like therapy, I decided to play a little. See https://gitlab.com/ksbhaskar/fastinsert/-/blob/main/fastinsert.m
>

Hi,

The linked M routine does not run processes in parallel:

for i=1:1:nproc do setdata(i)

The time reported is for the last setdata() call only, so increasing
the number of processes decreases the reported elapsed time.

The corrected code:

set start=$zut,end=0
for i=1:1:nproc do
. set:^ctrl(i,"start")<start start=^ctrl(i,"start")
. set:end<^ctrl(i,"end") end=^ctrl(i,"end")

Regards,
pahihu

Re: Database speed comparison

<772f0dcd-3307-4131-a168-7591acd4b74an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=113&group=comp.lang.mumps#113

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:41d2:: with SMTP id o18mr956071qtm.10.1627498059001;
Wed, 28 Jul 2021 11:47:39 -0700 (PDT)
X-Received: by 2002:a4a:d40a:: with SMTP id n10mr633385oos.32.1627498058631;
Wed, 28 Jul 2021 11:47:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Wed, 28 Jul 2021 11:47:38 -0700 (PDT)
In-Reply-To: <c3681cd4-231f-426d-9f4c-59022893269cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.36.105; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.36.105
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com>
<a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com>
<4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <c3681cd4-231f-426d-9f4c-59022893269cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <772f0dcd-3307-4131-a168-7591acd4b74an@googlegroups.com>
Subject: Re: Database speed comparison
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Wed, 28 Jul 2021 18:47:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: K.S. Bhaskar - Wed, 28 Jul 2021 18:47 UTC

On Wednesday, July 28, 2021 at 6:59:39 AM UTC-4, pahihu wrote:
> K.S. Bhaskar ezt írta (2021. július 22., csütörtök, 23:33:33 UTC+2):
> > Since programming can be therapeutic, and I felt like therapy, I decided to play a little. See https://gitlab.com/ksbhaskar/fastinsert/-/blob/main/fastinsert.m
> >
> Hi,
>
> The linked M routine does not run processes in parallel:
>
> for i=1:1:nproc do setdata(i)
>
> The time reported is for the last setdata() call only, so increasing
> the number of processes decreases the reported elapsed time.
>
> The corrected code:
>
> set start=$zut,end=0
> for i=1:1:nproc do
> . set:^ctrl(i,"start")<start start=^ctrl(i,"start")
> . set:end<^ctrl(i,"end") end=^ctrl(i,"end")
>
> Regards,
> pahihu

Pahihu –

Thanks for the correction. You are right. Although the “starter's pistol” of the M lock release means that all child processes start at essentially the same time, and that in typical cases, the difference is likely to be in the millisecond range.

I will fix it in the next iteration. Thanks again.

Regards
– Bhaskar

Re: Database speed comparison

<f2daae29-061f-46b0-b660-b88918c65cafn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=114&group=comp.lang.mumps#114

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:20ce:: with SMTP id f14mr2871693qka.367.1627524345660; Wed, 28 Jul 2021 19:05:45 -0700 (PDT)
X-Received: by 2002:a9d:d53:: with SMTP id 77mr1978552oti.18.1627524345347; Wed, 28 Jul 2021 19:05:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.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: comp.lang.mumps
Date: Wed, 28 Jul 2021 19:05:45 -0700 (PDT)
In-Reply-To: <772f0dcd-3307-4131-a168-7591acd4b74an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 71.162.243.192
References: <28f99aa9-4172-4277-9224-f7b6a3f42bf1n@googlegroups.com> <a83b7621-6d59-4fe6-aa6a-328bb94ad45cn@googlegroups.com> <6232ad78-9e53-4dfd-99bc-392982fdb8c9n@googlegroups.com> <4e4c6f9b-c5ae-41e1-b5f7-e58b60057cc4n@googlegroups.com> <c3681cd4-231f-426d-9f4c-59022893269cn@googlegroups.com> <772f0dcd-3307-4131-a168-7591acd4b74an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f2daae29-061f-46b0-b660-b88918c65cafn@googlegroups.com>
Subject: Re: Database speed comparison
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Thu, 29 Jul 2021 02:05:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 69
 by: K.S. Bhaskar - Thu, 29 Jul 2021 02:05 UTC

On Wednesday, July 28, 2021 at 2:47:39 PM UTC-4, K.S. Bhaskar wrote:
> On Wednesday, July 28, 2021 at 6:59:39 AM UTC-4, pahihu wrote:
> > K.S. Bhaskar ezt írta (2021. július 22., csütörtök, 23:33:33 UTC+2):
> > > Since programming can be therapeutic, and I felt like therapy, I decided to play a little. See https://gitlab.com/ksbhaskar/fastinsert/-/blob/main/fastinsert.m
> > >
> > Hi,
> >
> > The linked M routine does not run processes in parallel:
> >
> > for i=1:1:nproc do setdata(i)
> >
> > The time reported is for the last setdata() call only, so increasing
> > the number of processes decreases the reported elapsed time.
> >
> > The corrected code:
> >
> > set start=$zut,end=0
> > for i=1:1:nproc do
> > . set:^ctrl(i,"start")<start start=^ctrl(i,"start")
> > . set:end<^ctrl(i,"end") end=^ctrl(i,"end")
> >
> > Regards,
> > pahihu
> Pahihu –
>
> Thanks for the correction. You are right. Although the “starter's pistol” of the M lock release means that all child processes start at essentially the same time, and that in typical cases, the difference is likely to be in the millisecond range.
>
> I will fix it in the next iteration. Thanks again.
>
> Regards
> – Bhaskar

OK, I have a considerable amount of egg on my face. Not only was the program wrong, but the time I reported for a Raspberry Pi Zero W was actually on a Raspberry Pi 3. I have corrected the program and uploaded it. Here are the current numbers, which are still respectable, but not knock-your-socks-off numbers.

On a Raspberry Pi Zero W (32-bit Debian Bullseye):

$ yottadb -run fastinsert 1E6
Set 1,000,000 nodes in 75.457866 seconds using 1 processes at 13,252 nodes/second
$

On a Raspberry Pi 3 (64-bit Debian Bullseye):

$ yottadb -run fastinsert 1E7
Set 10,000,000 nodes in 46.736418 seconds using 4 processes at 213,966 nodes/second
$

On the home-brew (not overclocked) AMD Ryzen-7 3700X (64-bit Ubuntu 21.04):

$ yottadb -run fastinsert 1E8
Set 100,000,000 nodes in 51.999496 seconds using 16 processes at 1,923,096 nodes/second
$

I have no excuses to offer. Thank you for keeping me honest Pahihu. Now back to wiping the egg off my face!

Regards
– Bhaskar

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor