summaryrefslogtreecommitdiff
path: root/wasm2c/benchmarks/dhrystone/src/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'wasm2c/benchmarks/dhrystone/src/README.md')
-rw-r--r--wasm2c/benchmarks/dhrystone/src/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/wasm2c/benchmarks/dhrystone/src/README.md b/wasm2c/benchmarks/dhrystone/src/README.md
new file mode 100644
index 00000000..30d270e9
--- /dev/null
+++ b/wasm2c/benchmarks/dhrystone/src/README.md
@@ -0,0 +1,23 @@
+The Dhrystone benchmark: a popular benchmark for CPU/compiler performance
+measurement. Description and sources available
+[here](https://www.netlib.org/benchmark/dhry-c).
+
+# Running the benchmark
+Use the command `make benchmark` to run the benchmark.
+
+This compares the performance of three builds of Dhrystone (1) Native (2) Wasm2c
+(3) Wasm2C + Segue optimization. The Segue optimization is enabled only on
+specific CPU+OS+Compiler combinations. If unsupported on your platform, builds
+(2) and (3) above will be identical
+
+# Sample output
+
+```
+Starting Dhrystone benchmark. (Smaller number is better)
+Native
+Microseconds for one run through Dhrystone: 0.011133
+Wasm
+Microseconds for one run through Dhrystone: 0.013670
+Wasm+Segue
+Microseconds for one run through Dhrystone: 0.008666
+``` \ No newline at end of file