( )โš™ D1220 perf-test-for-D1208: testing code for the cache related changes in D1208

This is an archive of the discontinued Mercurial Phabricator instance.

perf-test-for-D1208: testing code for the cache related changes in D1208
AbandonedPublic

Authored by singhsrb on Oct 23 2017, 4:18 PM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Summary

Just putting this commit out there to share how I tested the
performance for D1208.

Test Plan

Ran 'test-cstore.t' with and without D1208 patched.

  • Around 0.50 seconds with D1208.
  • Around 4 seconds without D1208.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

singhsrb created this revision.Oct 23 2017, 4:18 PM
Herald added a reviewer: Restricted Project. ยท View Herald TranscriptOct 23 2017, 4:18 PM

No need to review this. I will abandon this eventually or use it properly for testing.

durham requested changes to this revision.Oct 26 2017, 4:14 PM
durham added a subscriber: durham.

Could we make this an actual test of some sort? Maybe monkey patch the iter function to count how many times it iterates and assert that it only iterates N + 1 times (for N packs)

This revision now requires changes to proceed.Oct 26 2017, 4:14 PM
singhsrb abandoned this revision.Nov 7 2017, 2:26 PM

This commit was only there to show how I tested the performance. The actual test for the cache is in D1208 itself. Therefore, abandoning this revision!