mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 01:11:02 +02:00
Implements std.reverse in native Go, improving performance benchmark old ns/op new ns/op delta Benchmark_Builtin_reverse-16 869191619 231309458 -73.39% part of #111
5 lines
87 B
Jsonnet
5 lines
87 B
Jsonnet
{
|
|
foo: [
|
|
std.reverse(std.range(0, 5000)) for i in std.range(0,100)
|
|
],
|
|
} |