-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_behavioural_objects.py
40 lines (34 loc) · 1.13 KB
/
create_behavioural_objects.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from ocfl_interfaces.fedora.behavioural_objects import BehaviouralObjects
from pprint import pprint
import time
b = BehaviouralObjects()
start_time = time.time()
print("Create metadata object")
results = b.create_metadata_object()
pprint(results)
end_time = time.time()
print("--- %s seconds ---" % (end_time - start_time))
start_time = time.time()
print("Create binary file object")
results = b.create_binary_file_objects()
pprint(results)
end_time = time.time()
print("--- %s seconds ---" % (end_time - start_time))
start_time = time.time()
print("Create large binary file object")
results = b.create_large_binary_file_objects()
pprint(results)
end_time = time.time()
print("--- %s seconds ---" % (end_time - start_time))
start_time = time.time()
print("Create complex binary file object")
results = b.create_complex_binary_file_objects()
pprint(results)
end_time = time.time()
print("--- %s seconds ---" % (end_time - start_time))
start_time = time.time()
print("Create very large binary file object")
results = b.create_very_large_binary_file_objects()
pprint(results)
end_time = time.time()
print("--- %s seconds ---" % (end_time - start_time))