Skip to content

Commit e50490c

Browse files
committed
Document wasm gas changes and benchmark hardware
1 parent 4761129 commit e50490c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/GAS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ gas and took 15ms on our CI system. The ideal cost per operation for this system
2929
is `10**12 / (96837752 / (15 / 1000))`: 154. This is rounded to 150 for
3030
simplicity.
3131

32+
CosmWasm 2.1 update: All gas values were re-evaluated and adjusted to meet the 1
33+
Teragas/second target mentioned above. A rerun of the Argon2 test contract
34+
consumed 5270718300 gas with the previous cost of 150, so the operation count
35+
was `5270718300 / 150 = 35138122`. This took 6ms on our benchmark server, so the
36+
new cost per operation is `10**12 / (35138122 / (6 / 1000))`: 171. This is
37+
rounded to 170 for simplicity.
38+
39+
Benchmarking system:
40+
41+
- CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (4 cores, 8 threads)
42+
- RAM: 32GB DDR4 2133 MHz
43+
3244
Each machine is different, we know that. But the above target helps us in
3345
multiple ways:
3446

0 commit comments

Comments
 (0)