1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-08 03:13:15 +02:00

Updated benchmark

This commit is contained in:
Tim Voronov 2021-09-08 16:27:39 -04:00
parent e4e98830a0
commit de128894f6

View File

@ -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++ {