Skip to content

Commit

Permalink
Add benchmark for object field caching (google#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarzowski authored and sparkprime committed Jul 30, 2019
1 parent 0a16569 commit 12689a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions benchmarks/bench.08.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local fibnext = {
a: super.a + super.b,
b: super.a,
};
local fib(n) =
if n == 0 then
{ a: 1, b: 1 }
else
fib(n - 1) + fibnext;

fib(25)

0 comments on commit 12689a5

Please sign in to comment.