Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SQL output for some of the test datasets #7

Merged
merged 2 commits into from
Dec 30, 2013

Conversation

cosmoharrigan
Copy link
Member

No description provided.

cosmoharrigan pushed a commit that referenced this pull request Dec 30, 2013
Add SQL output for some of the test datasets
@cosmoharrigan cosmoharrigan merged commit 5220b57 into opencog:master Dec 30, 2013
@linas
Copy link
Member

linas commented Dec 31, 2013

I assume these hold data this is equivalent to the other files? Out of curiosity, how quickly do these load?

@cosmoharrigan
Copy link
Member Author

Yes. The load times are:
testscene3.sql <1 second for 3213 atoms
conceptnet4.sql 12 seconds for 139972 atoms, whereas conceptnet4.scm (Scheme) took 354 seconds

@linas
Copy link
Member

linas commented Jan 5, 2014

Ewww. :-( Thanks for posting the data, but it's pretty disappointing.

You seem to be seeing about 12K atoms/sec for the postgres load, and 400 atoms/sec on the scheme load. That's awful. I was measuring .. well, actually I never measured load of text-sql before, so not sure. From sql to atomspace, I was measuring 65K atoms/sec 4 years ago. And according to the benchmark, scheme was last seen doing some 5K-7K atoms-per second, for a complete round-trip (viz enter scheme interpreter, parse the ascii string, do what is says, create the atoms, and return to user.) So maybe the benchmark load is very non-representative of typical data.

I guess we need a benchmark to create 'typical' (random) evaluation links.

@edajade
Copy link
Contributor

edajade commented Jan 7, 2014

It's probably the atomspace event loop. I remember Joel benchmarking that
years ago and saying it slowed things down a lot...

On Mon, Jan 6, 2014 at 10:57 AM, Linas Vepstas notifications@github.comwrote:

Ewww. :-( Thanks for posting the data, but it's pretty disappointing.

You seem to be seeing about 12K atoms/sec for the postgres load, and 400
atoms/sec on the scheme load. That's awful. I was measuring .. well,
actually I never measured load of text-sql before, so not sure. From sql to
atomspace, I was measuring 65K atoms/sec 4 years ago. And according to the
benchmark, scheme was last seen doing some 5K-7K atoms-per second, for a
complete round-trip (viz enter scheme interpreter, parse the ascii string,
do what is says, create the atoms, and return to user.) So maybe the
benchmark load is very non-representative of typical data.

I guess we need a benchmark to create 'typical' (random) evaluation links.


Reply to this email directly or view it on GitHubhttps://github.com//pull/7#issuecomment-31619868
.

@linas
Copy link
Member

linas commented Jan 12, 2014

On 7 January 2014 02:46, jadeoneill notifications@github.com wrote:

It's probably the atomspace event loop. I remember Joel benchmarking that
years ago and saying it slowed things down a lot...

That atomspace event loop is no more :-) and yes, removing it speeded
things up by 5x or more. Precise numbers in the diary file in the
benchmarking directory.

--linas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants