summaryrefslogtreecommitdiff
path: root/wasm2c/benchmarks/dhrystone/src/README.md
diff options
context:
space:
mode:
authorShravan Narayan <shravanrn@gmail.com>2024-06-26 11:30:44 -0500
committerGitHub <noreply@github.com>2024-06-26 09:30:44 -0700
commit0e871afa4aaac9fe0b1f00cb42a59be666657a06 (patch)
tree22c449953033d0ea98200d9117c11419054a762e /wasm2c/benchmarks/dhrystone/src/README.md
parentf820d171654de2dcb8cbf7078b4c98336c8e3c69 (diff)
downloadwabt-0e871afa4aaac9fe0b1f00cb42a59be666657a06.tar.gz
wabt-0e871afa4aaac9fe0b1f00cb42a59be666657a06.tar.bz2
wabt-0e871afa4aaac9fe0b1f00cb42a59be666657a06.zip
wasm2c: Segue optimization for modules with a single unshared memory (#2395)
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