From 0e871afa4aaac9fe0b1f00cb42a59be666657a06 Mon Sep 17 00:00:00 2001 From: Shravan Narayan Date: Wed, 26 Jun 2024 11:30:44 -0500 Subject: wasm2c: Segue optimization for modules with a single unshared memory (#2395) --- wasm2c/benchmarks/dhrystone/src/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 wasm2c/benchmarks/dhrystone/src/README.md (limited to 'wasm2c/benchmarks/dhrystone/src/README.md') 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 -- cgit v1.2.3