-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
goos: linux goarch: amd64 pkg: cuelang.org/go/cue/testdata/benchmarks cpu: AMD Ryzen 7 PRO 5850U with Radeon Graphics │ apd-v2-24 │ │ sec/op │ /decimal.txtar-8 4.982m ± 1% │ apd-v2-24 │ │ B/op │ /decimal.txtar-8 1.873Mi ± 0% │ apd-v2-24 │ │ allocs/op │ /decimal.txtar-8 29.72k ± 0% Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ic7e2178c8fe8736870962d71d56b6c250af81ada Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/554904 Reviewed-by: Marcel van Lohuizen <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
2 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
-- stats.txt -- | ||
Leaks: 0 | ||
Freed: 11 | ||
Reused: 8 | ||
Allocs: 3 | ||
Retain: 0 | ||
|
||
Unifications: 11 | ||
Conjuncts: 11 | ||
Disjuncts: 11 | ||
|
||
-- in.cue -- | ||
out: [ | ||
123.45 + 987.65, | ||
123.45 - 987.65, | ||
123.45 * 987.65, | ||
123.45 / 987.65, | ||
|
||
// whole integers | ||
2 + 3, | ||
7 - 1, | ||
5 * 10, | ||
20 / 4, | ||
|
||
1 / 3, // fill all digits | ||
] | ||
-- out/compile -- | ||
--- in.cue | ||
{ | ||
out: [ | ||
(123.45 + 987.65), | ||
(123.45 - 987.65), | ||
(123.45 * 987.65), | ||
(123.45 / 987.65), | ||
(2 + 3), | ||
(7 - 1), | ||
(5 * 10), | ||
(20 / 4), | ||
(1 / 3), | ||
] | ||
} | ||
-- out/eval/stats -- | ||
Leaks: 0 | ||
Freed: 11 | ||
Reused: 8 | ||
Allocs: 3 | ||
Retain: 0 | ||
|
||
Unifications: 11 | ||
Conjuncts: 11 | ||
Disjuncts: 11 | ||
-- out/eval -- | ||
(struct){ | ||
out: (#list){ | ||
0: (float){ 1111.10 } | ||
1: (float){ -864.20 } | ||
2: (float){ 121925.3925 } | ||
3: (float){ 0.124993671847314332000203 } | ||
4: (int){ 5 } | ||
5: (int){ 6 } | ||
6: (int){ 50 } | ||
7: (float){ 5 } | ||
8: (float){ 0.333333333333333333333333 } | ||
} | ||
} |