@@ -17,7 +17,7 @@ limitations under the License.
1717use criterion:: { Criterion , criterion_group, criterion_main} ;
1818use hyperlight_host:: GuestBinary ;
1919use hyperlight_host:: sandbox:: {
20- Callable , MultiUseSandbox , SandboxConfiguration , UninitializedSandbox ,
20+ MultiUseSandbox , SandboxConfiguration , UninitializedSandbox ,
2121} ;
2222use hyperlight_testing:: simple_guest_as_string;
2323
@@ -38,7 +38,7 @@ fn guest_call_benchmark(c: &mut Criterion) {
3838 group. bench_function ( "guest_call" , |b| {
3939 let mut sbox = create_multiuse_sandbox ( ) ;
4040
41- b. iter ( || sbox. call :: < String > ( "Echo" , "hello\n " . to_string ( ) ) . unwrap ( ) ) ;
41+ b. iter ( || sbox. run :: < String > ( "Echo" , "hello\n " . to_string ( ) ) . unwrap ( ) ) ;
4242 } ) ;
4343
4444 // Benchmarks a single guest function call.
@@ -48,7 +48,7 @@ fn guest_call_benchmark(c: &mut Criterion) {
4848 let snapshot = sbox. snapshot ( ) . unwrap ( ) ;
4949
5050 b. iter ( || {
51- sbox. call :: < String > ( "Echo" , "hello\n " . to_string ( ) ) . unwrap ( ) ;
51+ sbox. run :: < String > ( "Echo" , "hello\n " . to_string ( ) ) . unwrap ( ) ;
5252 sbox. restore ( & snapshot) . unwrap ( ) ;
5353 } ) ;
5454 } ) ;
@@ -67,7 +67,7 @@ fn guest_call_benchmark(c: &mut Criterion) {
6767
6868 b. iter ( || {
6969 multiuse_sandbox
70- . call :: < i32 > ( "Add" , ( 1_i32 , 41_i32 ) )
70+ . run :: < i32 > ( "Add" , ( 1_i32 , 41_i32 ) )
7171 . unwrap ( )
7272 } ) ;
7373 } ) ;
@@ -99,7 +99,7 @@ fn guest_call_benchmark_large_param(c: &mut Criterion) {
9999
100100 b. iter ( || {
101101 sandbox
102- . call_guest_function_by_name :: < ( ) > (
102+ . run :: < ( ) > (
103103 "LargeParameters" ,
104104 ( large_vec. clone ( ) , large_string. clone ( ) ) ,
105105 )
0 commit comments