diff --git a/CHANGELOG.md b/CHANGELOG.md index ffabf8d..e3c7c1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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+ diff --git a/test/benchmark.gleam b/test/benchmark.gleam index b942684..5ab933f 100644 --- a/test/benchmark.gleam +++ b/test/benchmark.gleam @@ -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"),