perf: Changed benchmarks titles

This commit is contained in:
2025-10-19 20:27:48 +01:00
parent 91807aac61
commit 7f631dc13c
2 changed files with 13 additions and 5 deletions

View File

@@ -22,3 +22,7 @@
- Minor performance improvement for erlang
- Major performance improvement for js
## 2.0.4
- Reverted some optimisations as they are unnecessary for Gleam v1.14.0+

View File

@@ -89,11 +89,15 @@ pub fn parse_benchmark() {
pub fn pop_benchmark() {
benchmark.run(
[
benchmark.Function("pop", fn(data) { fn() { pop(data, "") } }),
benchmark.Function("pop2", fn(data) { fn() { pop4(data, "") } }),
benchmark.Function("pop3", fn(data) { fn() { pop5(data, "") } }),
benchmark.Function("match", fn(data) { fn() { pop2(data, "") } }),
benchmark.Function("match_2", fn(data) { fn() { pop3(data, "") } }),
benchmark.Function("pop with range", fn(data) { fn() { pop(data, "") } }),
benchmark.Function("pop check char", fn(data) { fn() { pop4(data, "") } }),
benchmark.Function("pop check result", fn(data) {
fn() { pop5(data, "") }
}),
benchmark.Function("letter as var <> tail", fn(data) {
fn() { pop2(data, "") }
}),
benchmark.Function("letter <> tail", fn(data) { fn() { pop3(data, "") } }),
],
[
// benchmark.Data("long", "abcdefghijklmnopqrstuvwxyz"),