ssbc / ssb-tribes2

SSB private groups with ssb-db2
8 stars 1 forks source link

Add benchmarks #15

Closed Powersource closed 2 years ago

Powersource commented 2 years ago

@arj03 you requested this. Do you have a gold standard recommended way of doing this?

arj03 commented 2 years ago

A good place to start would be here I think: https://github.com/ssbc/ssb-db2/commit/ab0d3cec1f89cb8df8481421749c1a60db6316c1

arj03 commented 2 years ago

But there should also be something in this module that does some of the same things, with adding 1000 messages.

arj03 commented 2 years ago

Now adding it maybe not the best test because it's not realistic that someone creates a lot of messages, but I want to be sure that the tangle stuff scales well when you have a lot of messages in a group.

Powersource commented 2 years ago

In this PR https://github.com/ssbc/ssb-tribes2/pull/19 I add a test that adds 5k messages.

https://github.com/ssbc/ssb-tribes2/blob/da29c04ca432452778ceb55cad0b1f1e88d390f8/test/tangle-prune.test.js#L48

Is that enough to close this issue?

arj03 commented 2 years ago

Yeah. Thanks :)