Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions google/cpu-memory/chameleon/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def function_handler(request):
num_of_rows = request_json['num_of_rows']
num_of_cols = request_json['num_of_cols']

message = generate(length_of_message)

# 128-bit key (16 bytes)
KEY = b'\xa1\xf6%\x8c\x87}_\xcd\x89dHE8\xbf\xc9,'

Expand Down
3 changes: 2 additions & 1 deletion google/cpu-memory/chameleon/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
chameleon
chameleon
six
4 changes: 2 additions & 2 deletions google/cpu-memory/linpack/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from numpy import matrix, array, linalg, random, amax, asscalar
from numpy import matrix, array, linalg, random, amax
from time import time

def linpack(N):
Expand Down Expand Up @@ -35,4 +35,4 @@ def function_handler(request):
N = request_json['N']
result = linpack(N)
print(result)
return "latency : " + str(result['latency']) + " mflops : " + str(result['mflops'])
return "latency : " + str(result['latency']) + " mflops : " + str(result['mflops'])
2 changes: 1 addition & 1 deletion google/disk/gzip_compression/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def function_handler(request):
f.write(os.urandom(file_size * 1024 * 1024))
disk_latency = time() - start

with open(file_write_path) as f:
with open(file_write_path, 'rb') as f:
start = time()
with gzip.open('/tmp/result.gz', 'wb') as gz:
gz.writelines(f)
Expand Down