-
-
Save bloodeagle40234/f4c0cd267e085cc6224ffdc1b1822631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyeclib.ec_iface import ECDriver | |
import sys | |
import gc | |
def collect(): | |
for x in range(3): | |
gc.collect(x) | |
if __name__ == '__main__': | |
first = sys.gettotalrefcount() | |
driver = ECDriver(ec_type='liberasurecode_rs_vand', k=6, m=3) | |
for x in range(1000): | |
info = driver.get_segment_info(1024*1024, 1024*1024) | |
info = None | |
collect() | |
last = sys.gettotalrefcount() | |
print "first count: %d, last count: %d, diff: %d" % (first, last, last - first) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment