init benchmarks
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
9
tests/benchmark/create_users.py
Executable file
9
tests/benchmark/create_users.py
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
from uuid import uuid4
|
||||
|
||||
from tests.benchmark.init import *
|
||||
|
||||
while User.objects.count() < int(sys.argv[1]):
|
||||
User.objects.create(username=uuid4(), name=uuid4())
|
Reference in New Issue
Block a user