Update Matrix-based Benchmark
This commit is contained in:
parent
09a9b3db9e
commit
207196a10a
3 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@ class MatrixBench():
|
||||||
def run(self):
|
def run(self):
|
||||||
print("# Linpack-like Matrix-based Floating Point Benchmark #")
|
print("# Linpack-like Matrix-based Floating Point Benchmark #")
|
||||||
print("# Using NumPy as Core #")
|
print("# Using NumPy as Core #")
|
||||||
for i in range(0, self.iters+1):
|
for i in range(1, self.iters+1):
|
||||||
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
|
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
|
||||||
self.create_matrices()
|
self.create_matrices()
|
||||||
self.do_operation()
|
self.do_operation()
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# Matrix-based CPU Benchmark #
|
# Matrix-based CPU Benchmark #
|
||||||
|
### Inspired by Linpack HPL benchmark ###
|
||||||
|
|
||||||
## Contains two options: ##
|
## Contains two options: ##
|
||||||
* NumPy script (which requires numpy lib) <= Preferable
|
* NumPy script (which requires numpy lib) <= Preferable
|
||||||
* SciPy script (which requires scipy lib)
|
* SciPy script (which requires scipy lib)
|
||||||
|
|
||||||
### Warning: SciPy based scipt kinda buggy and produces many warnings (the warnings already suppresed for visual) ###
|
### Warning: SciPy based scipt kinda buggy and produces many warnings (the warnings are already suppresed for visual) ###
|
||||||
|
|
|
@ -42,7 +42,7 @@ class MatrixBench():
|
||||||
def run(self):
|
def run(self):
|
||||||
print("# Linpack-like Matrix-based Floating Point Benchmark #")
|
print("# Linpack-like Matrix-based Floating Point Benchmark #")
|
||||||
print("# Using SciPy as Core (contains Warn: Ill-conditioned Matrix) #")
|
print("# Using SciPy as Core (contains Warn: Ill-conditioned Matrix) #")
|
||||||
for i in range(0, self.iters + 1):
|
for i in range(1, self.iters + 1):
|
||||||
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
|
print(f"=> Epoch #{str(i).zfill(len(str(self.iters)))}", end="\r")
|
||||||
self.create_matrices()
|
self.create_matrices()
|
||||||
self.do_operation()
|
self.do_operation()
|
||||||
|
|
Loading…
Reference in a new issue