Skip to content

Commit 8728a65

Browse files
committed
[GR-16070] Fix benchmarks.
PullRequest: truffleruby/864
2 parents 3fdb5d1 + e2337f7 commit 8728a65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ local part_definitions = {
473473

474474
cext_chunky: {
475475
environment+: {
476-
TRUFFLERUBYOPT: "--cexts-log-load=true",
476+
TRUFFLERUBYOPT: "--experimental-options --cexts-log-load",
477477
USE_CEXTS: "true",
478478
},
479479
setup+:

doc/contributor/cexts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jt cextc bench/chunky_png/oily_png
4040
Then follow the instructions for benchmarking above, and then try:
4141

4242
```bash
43-
$ USE_CEXTS=true TRUFFLERUBYOPT=--cexts-log-load jt benchmark bench/chunky_png/chunky-color-r.rb --simple
43+
$ USE_CEXTS=true TRUFFLERUBYOPT="--experimental-options --cexts-log-load" jt benchmark bench/chunky_png/chunky-color-r.rb --simple
4444
```
4545

4646
These benchmarks have Ruby fallbacks, so we should carefully check that the

tool/jt.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,8 @@ def build_stats_native_binary_size(*args)
13881388

13891389
def build_stats_native_build_time(*args)
13901390
log = File.read('aot-build.log')
1391-
log =~ /\[total\]: (?<build_time>.+) ms/m
1392-
Float($~[:build_time].gsub(',', '')) / 1000.0
1391+
build_time = log[/\[truffleruby.*\].*\[total\]:\s*([0-9,.]+)\s*ms/, 1]
1392+
Float(build_time.gsub(',', '')) / 1000.0
13931393
end
13941394

13951395
def build_stats_native_runtime_compilable_methods(*args)

0 commit comments

Comments
 (0)