Skip to content

Commit

Permalink
Updated benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex committed Sep 8, 2021
1 parent e4e9883 commit de12889
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pkg/compiler/compiler_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,21 @@ func BenchmarkMemberObject(b *testing.B) {

func BenchmarkMemberObjectComputed(b *testing.B) {
p := compiler.New().MustCompile(`
LET obj = { "foo": "bar"}
LET obj = {
first: {
second: {
third: {
fourth: {
fifth: {
bottom: true
}
}
}
}
}
}
RETURN obj["foo"]
RETURN obj["first"]["second"]["third"]["fourth"]["fifth"]["bottom"]
`)

for n := 0; n < b.N; n++ {
Expand Down

0 comments on commit de12889

Please sign in to comment.