@@ -30,6 +30,7 @@ const MEMORY_CACHE_SIZE: Size = Size::mebi(200);
30
30
const INSTANTIATION_THREADS : usize = 128 ;
31
31
const CONTRACTS : u64 = 10 ;
32
32
33
+ const DEFAULT_CAPABILITIES : & str = "cosmwasm_1_1,cosmwasm_1_2,cosmwasm_1_3,iterator,staking" ;
33
34
static CONTRACT : & [ u8 ] = include_bytes ! ( "../testdata/hackatom.wasm" ) ;
34
35
static CYBERPUNK : & [ u8 ] = include_bytes ! ( "../testdata/cyberpunk.wasm" ) ;
35
36
@@ -129,7 +130,7 @@ fn bench_cache(c: &mut Criterion) {
129
130
130
131
let options = CacheOptions :: new (
131
132
TempDir :: new ( ) . unwrap ( ) . into_path ( ) ,
132
- capabilities_from_csv ( "iterator,staking" ) ,
133
+ capabilities_from_csv ( DEFAULT_CAPABILITIES ) ,
133
134
MEMORY_CACHE_SIZE ,
134
135
DEFAULT_MEMORY_LIMIT ,
135
136
) ;
@@ -182,7 +183,7 @@ fn bench_cache(c: &mut Criterion) {
182
183
group. bench_function ( "instantiate from fs" , |b| {
183
184
let non_memcache = CacheOptions :: new (
184
185
TempDir :: new ( ) . unwrap ( ) . into_path ( ) ,
185
- capabilities_from_csv ( "iterator,staking" ) ,
186
+ capabilities_from_csv ( DEFAULT_CAPABILITIES ) ,
186
187
Size :: new ( 0 ) ,
187
188
DEFAULT_MEMORY_LIMIT ,
188
189
) ;
@@ -204,7 +205,7 @@ fn bench_cache(c: &mut Criterion) {
204
205
group. bench_function ( "instantiate from fs unchecked" , |b| {
205
206
let non_memcache = CacheOptions :: new (
206
207
TempDir :: new ( ) . unwrap ( ) . into_path ( ) ,
207
- capabilities_from_csv ( "iterator,staking" ) ,
208
+ capabilities_from_csv ( DEFAULT_CAPABILITIES ) ,
208
209
Size :: new ( 0 ) ,
209
210
DEFAULT_MEMORY_LIMIT ,
210
211
) ;
@@ -267,11 +268,11 @@ fn bench_cache(c: &mut Criterion) {
267
268
group. finish ( ) ;
268
269
}
269
270
270
- pub fn bench_instance_threads ( c : & mut Criterion ) {
271
+ fn bench_instance_threads ( c : & mut Criterion ) {
271
272
c. bench_function ( "multi-threaded get_instance" , |b| {
272
273
let options = CacheOptions :: new (
273
274
TempDir :: new ( ) . unwrap ( ) . into_path ( ) ,
274
- capabilities_from_csv ( "iterator,staking" ) ,
275
+ capabilities_from_csv ( DEFAULT_CAPABILITIES ) ,
275
276
MEMORY_CACHE_SIZE ,
276
277
DEFAULT_MEMORY_LIMIT ,
277
278
) ;
0 commit comments