mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-08 03:13:15 +02:00
Updated benchmark
This commit is contained in:
parent
e4e98830a0
commit
de128894f6
@ -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++ {
|
||||
|
Loading…
Reference in New Issue
Block a user