#!/usr/bin/env python3
import time
import pysoc
import bubble

l = list(reversed(range(int(1e5))))
print("== Python ==")
time1 = time.time()
l1 = bubble.bubble_sort(l)
time0 = time.time()
print(f"> {time0 - time1} seconds")

l = list(reversed(range(int(1e5))))
print("== C ==")
time3 = time.time()
l2 = pysoc.bubble_sort(l)
time2 = time.time()
print(f"> {time2 - time3} seconds")
print(f"\n> C is {(time0 - time1)/(time2 - time3)} times faster")

d529a86002bce1eea4835470d06c798ab1ad0da1
<mask token>

<mask token>
print('== Python ==')
<mask token>
print(f'> {time0 - time1} seconds')
<mask token>
print('== C ==')
<mask token>
print(f'> {time2 - time3} seconds')
print(f"""
> C is {(time0 - time1) / (time2 - time3)} times faster""")

<mask token>
l = list(reversed(range(int(100000.0))))
print('== Python ==')
time1 = time.time()
l1 = bubble.bubble_sort(l)
time0 = time.time()
print(f'> {time0 - time1} seconds')
l = list(reversed(range(int(100000.0))))
print('== C ==')
time3 = time.time()
l2 = pysoc.bubble_sort(l)
time2 = time.time()
print(f'> {time2 - time3} seconds')
print(f"""
> C is {(time0 - time1) / (time2 - time3)} times faster""")

import time
import pysoc
import bubble
l = list(reversed(range(int(100000.0))))
print('== Python ==')
time1 = time.time()
l1 = bubble.bubble_sort(l)
time0 = time.time()
print(f'> {time0 - time1} seconds')
l = list(reversed(range(int(100000.0))))
print('== C ==')
time3 = time.time()
l2 = pysoc.bubble_sort(l)
time2 = time.time()
print(f'> {time2 - time3} seconds')
print(f"""
> C is {(time0 - time1) / (time2 - time3)} times faster""")

#!/usr/bin/env python3
import time
import pysoc
import bubble

l = list(reversed(range(int(1e5))))
print("== Python ==")
time1 = time.time()
l1 = bubble.bubble_sort(l)
time0 = time.time()
print(f"> {time0 - time1} seconds")

l = list(reversed(range(int(1e5))))
print("== C ==")
time3 = time.time()
l2 = pysoc.bubble_sort(l)
time2 = time.time()
print(f"> {time2 - time3} seconds")
print(f"\n> C is {(time0 - time1)/(time2 - time3)} times faster")
