fix string

This commit is contained in:
tianfenghan
2023-12-19 15:59:33 +08:00
parent aece0549d9
commit 8e04e6be34
13 changed files with 150 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
import phpy
import random
from php import std
m1 = phpy.call('memory_get_usage')
c = 128
total = 0
for i in range(1, c):
s = phpy.call('random_bytes', 8192 * i)
assert s.len() == 8192 * i
total += s.len()
m2 = phpy.call('memory_get_usage')
print(m2 - m1)
print(total)