Skip to content

Commit

Permalink
Add pretty-printing for Value (#503)
Browse files Browse the repository at this point in the history
* Move generic `pretty` extensions to `partiql-common`
* Add pretty-printing for `Value`
  • Loading branch information
jpschorr authored Oct 9, 2024
1 parent 05793bd commit 36b90c5
Show file tree
Hide file tree
Showing 12 changed files with 921 additions and 280 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- *BREAKING* partiql-parser: Added a source location to `ParseError::UnexpectedEndOfInput`

### Added
- partiql-value: Pretty-printing of `Value` via `ToPretty` trait

### Removed

Expand Down
Loading

1 comment on commit 36b90c5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PartiQL (rust) Benchmark

Benchmark suite Current: 36b90c5 Previous: 05793bd Ratio
arith_agg-avg 757550 ns/iter (± 14135) 758512 ns/iter (± 10612) 1.00
arith_agg-avg_distinct 846820 ns/iter (± 4815) 848621 ns/iter (± 7200) 1.00
arith_agg-count 804760 ns/iter (± 17690) 810473 ns/iter (± 80417) 0.99
arith_agg-count_distinct 838944 ns/iter (± 3186) 844508 ns/iter (± 2627) 0.99
arith_agg-min 810775 ns/iter (± 2512) 813068 ns/iter (± 4190) 1.00
arith_agg-min_distinct 843615 ns/iter (± 11284) 848537 ns/iter (± 2362) 0.99
arith_agg-max 817235 ns/iter (± 5860) 814747 ns/iter (± 6219) 1.00
arith_agg-max_distinct 854241 ns/iter (± 29133) 858958 ns/iter (± 3691) 0.99
arith_agg-sum 810277 ns/iter (± 3458) 809872 ns/iter (± 1987) 1.00
arith_agg-sum_distinct 844957 ns/iter (± 23645) 850432 ns/iter (± 2330) 0.99
arith_agg-avg-count-min-max-sum 961188 ns/iter (± 5157) 958506 ns/iter (± 4227) 1.00
arith_agg-avg-count-min-max-sum-group_by 1204105 ns/iter (± 13924) 1220172 ns/iter (± 14437) 0.99
arith_agg-avg-count-min-max-sum-group_by-group_as 1832649 ns/iter (± 9959) 1831510 ns/iter (± 130173) 1.00
arith_agg-avg_distinct-count_distinct-min_distinct-max_distinct-sum_distinct 1262413 ns/iter (± 14368) 1221445 ns/iter (± 19010) 1.03
arith_agg-avg_distinct-count_distinct-min_distinct-max_distinct-sum_distinct-group_by 1534439 ns/iter (± 28757) 1510386 ns/iter (± 14587) 1.02
arith_agg-avg_distinct-count_distinct-min_distinct-max_distinct-sum_distinct-group_by-group_as 2116623 ns/iter (± 6642) 2106217 ns/iter (± 9047) 1.00
parse-1 6042 ns/iter (± 15) 6231 ns/iter (± 30) 0.97
parse-15 49793 ns/iter (± 149) 51206 ns/iter (± 356) 0.97
parse-30 93069 ns/iter (± 355) 99227 ns/iter (± 252) 0.94
compile-1 4169 ns/iter (± 45) 4231 ns/iter (± 16) 0.99
compile-15 31690 ns/iter (± 115) 31875 ns/iter (± 236) 0.99
compile-30 66238 ns/iter (± 456) 65414 ns/iter (± 1965) 1.01
plan-1 66874 ns/iter (± 402) 67815 ns/iter (± 298) 0.99
plan-15 1055270 ns/iter (± 20019) 1051828 ns/iter (± 9443) 1.00
plan-30 2112655 ns/iter (± 10183) 2110985 ns/iter (± 9730) 1.00
eval-1 13247704 ns/iter (± 391970) 12934632 ns/iter (± 204154) 1.02
eval-15 95034828 ns/iter (± 947484) 89239951 ns/iter (± 261802) 1.06
eval-30 182929663 ns/iter (± 493150) 171190106 ns/iter (± 440487) 1.07
join 9839 ns/iter (± 47) 9933 ns/iter (± 1046) 0.99
simple 2590 ns/iter (± 13) 2559 ns/iter (± 25) 1.01
simple-no 474 ns/iter (± 2) 454 ns/iter (± 5) 1.04
numbers 48 ns/iter (± 0) 48 ns/iter (± 0) 1
parse-simple 820 ns/iter (± 31) 936 ns/iter (± 2) 0.88
parse-ion 2667 ns/iter (± 7) 2777 ns/iter (± 5) 0.96
parse-group 8040 ns/iter (± 43) 7987 ns/iter (± 26) 1.01
parse-complex 21267 ns/iter (± 231) 20795 ns/iter (± 42) 1.02
parse-complex-fexpr 28958 ns/iter (± 102) 28616 ns/iter (± 82) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.