Comments (6)
The change to pylon/run_*.y suggested does allow the benchmark to run.
We still need to remove the print statements though.
from embench-iot.
The problem is that the benchmark is writing to std out in benchmark_body
. The Mac scripts assumes the only info on standard out is timing info. I think the print statements should be removed, or at least put under a debugging option.
from embench-iot.
Hi,
I took a look at the code.
The following patch should fix this issue.
I don't have Mac and cannot test it by myself. Could you try this?
--- a/pylib/run_mac.py
+++ b/pylib/run_mac.py
@@ -64,7 +64,7 @@ def decode_results(stdout_str, stderr_str):
return 0.0
# Match "Real time: dd.ddd"
- time = re.search('^Real time: (\d+)[.](\d+)', stdout_str, re.S)
+ time = re.search('^Real time: (\d+)[.](\d+)', stdout_str, re.M)
if time:
ms_elapsed = float(time.group(1) + '.' + time.group(2))
# Return value cannot be zero (will be interpreted as error)
I think the print statements should be removed, or at least put under a debugging option.
I agree with you. The current md5sum test is measuring the performance of printf() :-)
from embench-iot.
from embench-iot.
I think the fix proposed by #152 addresses the use of external library functions.
from embench-iot.
This is what Roger and I wrote.
I think the print statements should be removed, or at least put under a debugging option.
I agree with you. The current md5sum test is measuring the performance of printf() :-)
I still recommend you to replace re.S
with re.M
in pylib/run_*.py
.
https://docs.python.org/3/library/re.html#re.S
https://docs.python.org/3/library/re.html#re.M
from embench-iot.
Related Issues (20)
- json-comma and no-json-comma option cause error HOT 1
- Failed to compute speed benchmarks for riscv
- Unable to run benchmark-speed HOT 1
- Does Embench support RISCV64 ISA HOT 1
- In nbody some toolchains hoisting bodies_energy out of main loop HOT 5
- In the st benchmark some toolchains hoisting/removing the computation from the benchmarking loop HOT 4
- crc32 size increases is we specify a frequency with --cpu-mhz different from 1 MHz
- nsichneu use of volatile keyword HOT 2
- nettle-sha256 does not work with CFI that enforces types HOT 2
- Discussing potential advantages of unaligned access and bi-endian hardware support HOT 2
- Remove I/O dependencies of md5sum benchmark
- How to run embench on qemu for RISC-V?
- Tarfind isn't portable due to assuming struct layout HOT 3
- EMB2.0: Automatic stdlib size overhead adjustment HOT 6
- EMB2.0: Update python build scripts HOT 1
- OpenRISC Port Issue #1: Inconsistency in size benchmark success reporting HOT 1
- OpenRISC port Issue #2: Inconsistency in reporting size results HOT 1
- OpenRISC port Issue #3: Binary header issue with -nostdlib/-nostartfiles flags HOT 1
- OpenRISC port Issue #4: Conflicting .so definitions in dummy libs and OpenRISC toolchain libc HOT 1
- Embench 2.0: Missing Depthconv benchmark's reference platform baseline data.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embench-iot.