Add benchmarks and add tiny performance improvements (#6)

* Add some benchmarks

* Replace extend -> extend_from_slice (1-2% performance improvement)

* Add many_blocks benchmarks
This commit is contained in:
Alexander Theißen
2022-01-24 21:20:47 +01:00
committed by GitHub
parent 184b3f8b3a
commit 8291876394
15 changed files with 62 additions and 2 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ fn instrument_function(ctx: &mut Context, func: &mut Instructions) -> Result<(),
ctx.stack_height_global_idx(),
ctx.stack_limit()
);
new_instrs.extend(new_seq);
new_instrs.extend_from_slice(&new_seq);
true
} else {
false