aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-07 05:06:47 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-07 18:52:23 +0800
commitac697326a6045eaa760b159e4bda37c57be61cbf (patch)
tree9f26ac6308b7ae0b9d0a6daab772aae796ee7a54 /tests/vm_test.go
parent184e9ae9a81df2db6381e18d3daa035d913ae341 (diff)
downloaddexon-ac697326a6045eaa760b159e4bda37c57be61cbf.tar.gz
dexon-ac697326a6045eaa760b159e4bda37c57be61cbf.tar.zst
dexon-ac697326a6045eaa760b159e4bda37c57be61cbf.zip
core/vm: reduced big int allocations
Reduced big int allocation by making stack items modifiable. Instead of adding items such as `common.Big0` to the stack, `new(big.Int)` is added instead. One must expect that any item that is added to the stack might change.
Diffstat (limited to 'tests/vm_test.go')
-rw-r--r--tests/vm_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm_test.go b/tests/vm_test.go
index 6b6b179fd..afa1424d5 100644
--- a/tests/vm_test.go
+++ b/tests/vm_test.go
@@ -30,7 +30,7 @@ func BenchmarkVmAckermann32Tests(b *testing.B) {
func BenchmarkVmFibonacci16Tests(b *testing.B) {
fn := filepath.Join(vmTestDir, "vmPerformanceTest.json")
- if err := BenchVmTest(fn, bconf{"fibonacci16", true, true}, b); err != nil {
+ if err := BenchVmTest(fn, bconf{"fibonacci16", true, false}, b); err != nil {
b.Error(err)
}
}