Last active
May 16, 2016 11:26
-
-
Save obscuren/6bf7d36c59e3a6f955dc744004ed1d1f to your computer and use it in GitHub Desktop.
EVM 64 bit gas counter results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############## OLD CODE | |
tests git:(evm-64bit) ✗ $ godep go test -run=- -bench=Ackermann32 -benchtime=10s | |
PASS | |
BenchmarkVmAckermann32Tests-4 2000 9586668 ns/op | |
ok github.com/ethereum/go-ethereum/tests 20.326s | |
tests git:(develop) $ JITFORCE= true; JITVM=true godep go test -run=- -bench=Ackermann32 -benchtime=5s | |
PASS | |
BenchmarkVmAckermann32Tests-4 2000 5742211 ns/op | |
ok github.com/ethereum/go-ethereum/tests 12.262s | |
########## NEW CODE 1 | |
tests git:(evm-64bit) ✗ $ JITFORCE= true; JITVM=true godep go test -run=- -bench=Ackermann32 -benchtime=10s | |
PASS | |
BenchmarkVmAckermann32Tests-4 3000 4176026 ns/op | |
ok github.com/ethereum/go-ethereum/tests 13.162s | |
########## NEW CODE 2 | |
tests git:(evm-64bit) ✗ $ JITFORCE= true; JITVM=true godep go test -run=- -bench=Ackermann32 -benchtime=2s | |
PASS | |
BenchmarkVmAckermann32Tests-4 2000 2484194 ns/op | |
ok github.com/ethereum/go-ethereum/tests 5.354s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evm --code "60606040526000357c01000000000000000000000000000000000000000000000000000000009004806347966bc2146037576035565b005b60406004506042565b005b6000600090505b6127105a1115605e5780806001019150506049565b5b5056" --input "47966bc2" --gas 62000000 --sysstat --forcejit --verbosity 10 | |
##### Byte code vm | |
I0515 12:19:14.669582 core/vm/vm.go:157] running byte VM ec19bfe4 | |
I0515 12:19:24.364666 core/vm/vm.go:160] byte VM ec19bfe4 done. time: 9.695075244s instrc: 18033476 | |
VM STAT 0 OPs | |
vm took 9.695225804s | |
alloc: 2752544 | |
tot alloc: 3580361648 | |
no. malloc: 95822662 | |
heap alloc: 2752544 | |
heap objs: 38743 | |
num gc: 1318 | |
##### OLD CODE | |
I0516 13:25:56.966781 core/vm/jit.go:140] compiling ec19bfe4 | |
I0516 13:25:56.966878 core/vm/jit_optimiser.go:38] optimising ec19bfe4 | |
I0516 13:25:56.966913 core/vm/jit_optimiser.go:41] optimised ec19bfe4 done in 23.736µs with JMP: 3 PSH: 3 | |
I0516 13:25:56.966927 core/vm/jit.go:143] compiled ec19bfe4 instrc: 50 time: 133.763µs | |
I0516 13:25:56.966936 core/vm/jit.go:315] running JIT program ec19bfe4 | |
I0516 13:26:05.098440 core/vm/jit.go:318] JIT program ec19bfe4 done. time: 8.131496746s instrc: 16906383 | |
VM STAT 0 OPs | |
vm took 8.131820217s | |
alloc: 1880336 | |
tot alloc: 2437441584 | |
no. malloc: 64260288 | |
heap alloc: 1880336 | |
heap objs: 16736 | |
num gc: 891 | |
OUT: 0x | |
##### NEW CODE 1 | |
I0515 12:19:49.359590 core/vm/jit.go:142] compiling ec19bfe4 | |
I0515 12:19:49.359656 core/vm/jit_optimiser.go:38] optimising ec19bfe4 | |
I0515 12:19:49.359685 core/vm/jit_optimiser.go:41] optimised ec19bfe4 done in 20.652µs with JMP: 3 PSH: 3 | |
I0515 12:19:49.359699 core/vm/jit.go:145] compiled ec19bfe4 instrc: 50 time: 100.374µs | |
I0515 12:19:49.359707 core/vm/jit.go:317] running JIT program ec19bfe4 | |
I0515 12:19:54.379231 core/vm/jit.go:320] JIT program ec19bfe4 done. time: 5.019515342s instrc: 16906383 | |
VM STAT 0 OPs | |
vm took 5.019753197s | |
alloc: 3494336 | |
tot alloc: 1427554888 | |
no. malloc: 32700053 | |
heap alloc: 3494336 | |
heap objs: 52491 | |
num gc: 531 | |
##### NEW CODE 2 | |
I0516 13:23:05.400634 core/vm/jit.go:142] compiling ec19bfe4 | |
I0516 13:23:05.400707 core/vm/jit_optimiser.go:38] optimising ec19bfe4 | |
I0516 13:23:05.400736 core/vm/jit_optimiser.go:41] optimised ec19bfe4 done in 20.085µs with JMP: 3 PSH: 3 | |
I0516 13:23:05.400753 core/vm/jit.go:145] compiled ec19bfe4 instrc: 50 time: 112.137µs | |
I0516 13:23:05.400765 core/vm/jit.go:317] running JIT program ec19bfe4 | |
I0516 13:23:07.758424 core/vm/jit.go:320] JIT program ec19bfe4 done. time: 2.357651337s instrc: 16906383 | |
VM STAT 0 OPs | |
vm took 2.357888521s | |
alloc: 3385096 | |
tot alloc: 670129128 | |
no. malloc: 16918779 | |
heap alloc: 3385096 | |
heap objs: 54566 | |
num gc: 248 | |
OUT: 0x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment