Skip to content
Unverified Commit c4cc75f2 authored by Michael Müller's avatar Michael Müller
Browse files

Add script to compile stats

Run it this way:

	git checkout cmichi-time-native-calls
	cargo run --release -- purge-chain --dev
	cargo run --release -- --dev > /tmp/rust_native 2>&1

	git checkout cmichi-time-wasm-calls
	cargo run --release -- purge-chain --dev
	cargo run --release -- --dev > /tmp/wasmi 2>&1

	git checkout cmichi-profile-native-compiled-wasm-2nd-approach
	cargo run --release -- purge-chain --dev
	cargo run --release -- --dev > /tmp/wasm2 2>&1

	git checkout cmichi-profile-native-compiled-wasm-2nd-approach
	sed -i '/MEMCHECK(mem, addr, t1);/d' node_runtime.c
	gcc -fPIC -rdynamic -shared -o libnode_runtime.so node_runtime.c wasm-rt-impl.c
	cp -f libnode_runtime.so target/release/deps/
	cargo run --release -- purge-chain --dev
	cargo run --release -- --dev > /tmp/wasm2c_wo_bc 2>&1

	./compile-stats.sh
parent 46d93866
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment