Skip to content

Temporal Memory extreamly slow when benchmarking with random inputs #745

@marty1885

Description

@marty1885

Hi,

Since @breznak mentioned about TM performance in #680 - I was benchmarking HTM.core's TM implementation vs mine and got really weird results.

Methodology

I adopted the tmbench.cpp code from here. The idea is to:

  1. Set both TM's parameter to run in the same condition
  2. Generate an array of 1000 random SDR with 10% density (using a scalar encoder)
  3. Send the SDRs to the TM one-by-one, until we passed all the SDRs
  4. Measure how long 3 takes
  5. Repeat for different SDR sizes

Source code (modified so I can generate plot from them):
For HTM.core
For Etaler

Result

The result is weird. I think I'm doing something horribly wrong. But I have no idea without deep knowledge about HTM.core's internal.
image


Edit: I believe the problem might be related to some old forum posts
TemporalMemory running very slow after long training

Metadata

Metadata

Assignees

Labels

codecode enhancement, optimization, cleanup..programmer stuffoptimizationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions