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

Stress tests #43

Merged
merged 8 commits into from
Aug 2, 2016
Merged

Stress tests #43

merged 8 commits into from
Aug 2, 2016

Conversation

liamsi
Copy link
Member

@liamsi liamsi commented Jul 29, 2016

will resolve #16

@vqhuy
Copy link
Member

vqhuy commented Jul 29, 2016

Should we also resolve #18 ?

@arlolra arlolra changed the title WIP: (stress) tests [WIP] Stress tests Jul 29, 2016
@masomel
Copy link
Member

masomel commented Jul 29, 2016

Should we also resolve #18 ?

I think we should do this in a separate PR since I expect that we'll have to move code around quite a bit for this.

@liamsi
Copy link
Member Author

liamsi commented Jul 29, 2016

Should we also resolve #18 ?

Some of the code will be re-usable to tackle #18. Will try to keep that in mind.

@masomel masomel force-pushed the master branch 3 times, most recently from 25a6925 to 2f704cf Compare July 29, 2016 20:03
@coveralls
Copy link

Coverage Status

Coverage increased (+1.3%) to 90.983% when pulling fb65bbeea409a997f9e06ba270f9d60a0dbcf959 on stress_tests into 2f704cf on master.

@liamsi liamsi force-pushed the stress_tests branch 5 times, most recently from 33e9ce8 to 8f1773f Compare July 31, 2016 20:35
@liamsi liamsi changed the title [WIP] Stress tests Stress tests Aug 2, 2016
@@ -14,7 +14,7 @@ const (
)

type SigningKey ed25519.PrivateKey
type VerifKey ed25519.PublicKey
type VerifyKey ed25519.PublicKey
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff doesn't look like belongs in this pull.

You should git rebase -i master and d (drop) that commit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be OK now.

liamsi added 7 commits August 2, 2016 19:21
- added benchmarks for creating large directory and doing lookups from large directory
- TB test
- MakeRand and Digest test
- s/createLargePadForBenchmark/createPad <- could be useful for other tests, too
- added tests for some edge cases
- removed obsolete check `uint64 < 0` which can't happen and error
- benchmark pad.Update(nil) in tree with 10^5 users (takes on average 0.23 s and consumes 72 MB)
- more stress tests/benchmarks for PAD Update and LookUp (used for pprof)
- test coverage in utils package
t.Fatal(err)
}

// TODO shouldn't there be a serialize function?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! Thanks for the pointer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now there is even a public Serialize method (https://github.com/coniks-sys/coniks-go/blob/master/merkletree/tb.go#L29-L31). I would prefer to use it instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@vqhuy vqhuy merged commit 22d7236 into master Aug 2, 2016
@arlolra
Copy link
Member

arlolra commented Aug 2, 2016

Was this done?

@vqhuy
Copy link
Member

vqhuy commented Aug 2, 2016

Oops. I definitely did something terrible. Sorry for the noise.

@vqhuy vqhuy mentioned this pull request Aug 2, 2016
@vqhuy
Copy link
Member

vqhuy commented Aug 2, 2016

Please see #54 . I'm so sorry about that :(

@liamsi
Copy link
Member Author

liamsi commented Aug 2, 2016

Oops. I definitely did something terrible. Sorry for the noise.
Please see #54 . I'm so sorry about that :(

Please, don't worry. Luckily, it easy to revert using git(hub) as you already did :-)

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.

Stress test adding data to the tree
5 participants