File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: json decoder benchmark CI
33on :
44 push :
55 paths :
6- - ' vlib/x/json2/decoder2/ **' # Trigger on changes in this folder
6+ - ' vlib/x/json2/**' # Trigger on changes in this folder
77
88jobs :
99 json-encode-benchmark :
@@ -18,10 +18,10 @@ jobs:
1818 run : make -j4 && ./v symlink
1919
2020 - name : Run V benchmark and save output
21- run : (echo '```sh '; v -prod crun vlib/x/json2/decoder2/ tests/bench.v; echo '```') > vlib/x/json2/decoder2 /tests/bench_out.md
21+ run : (echo '```txt '; v -prod crun vlib/x/json2/tests/bench.v; echo '```') > vlib/x/json2/tests/bench_out.md
2222
2323 - name : Upload result file
2424 uses : actions/upload-artifact@v4
2525 with :
2626 name : program-output
27- path : vlib/x/json2/decoder2/ tests/bench_out.md
27+ path : vlib/x/json2/tests/bench_out.md
Original file line number Diff line number Diff line change 44 push :
55 paths :
66 - ' vlib/x/json2/**' # Trigger on changes in this folder
7- - ' !vlib/x/json2/decoder2/**' # Ignore
87 - ' !vlib/x/json2/strict/**' # Ignore
98 - ' !vlib/x/json2/tests/**' # Ignore
109
Original file line number Diff line number Diff line change 4242 - ' vlib/v/preludes/**.v'
4343 - ' vlib/v/embed_file/**.v'
4444 - ' vlib/x/json2/**.v'
45- - ' vlib/x/json2/decoder2/**.v'
4645 - ' **/sanitized_ci.yml'
4746 pull_request :
4847 paths :
7170 - ' vlib/v/preludes/**.v'
7271 - ' vlib/v/embed_file/**.v'
7372 - ' vlib/x/json2/**.v'
74- - ' vlib/x/json2/decoder2/**.v'
7573 - ' **/sanitized_ci.yml'
7674
7775concurrency :
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import json as old_json
33import benchmark
44import time
55
6- // ./v -prod crun vlib/x/json/tests/c.v
7- // ./v wipe-cache && ./v -prod -cc gcc crun vlib/x/json2/decoder2/tests/bench.v
6+ // ./v wipe-cache && ./v -prod -cc gcc crun vlib/x/json2/tests/bench.v
87const max_iterations = 1_000_000
98// const max_iterations = 10 // trying figure out it is slower in small loop. I guess it is `fulfill_nodes` related. Any suggestion?
109
You can’t perform that action at this time.
0 commit comments