Skip to content

Commit

Permalink
Showing 2 changed files with 64 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ci.hocon
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ common: {

setup: ${common-setup}

timelimit: "01:00:00"
timelimit: "00:30:00"
}

no-graal: {
@@ -119,10 +119,12 @@ gate-caps: {

bench-caps: {
capabilities: [x52, linux, amd64, bench, post-push]
timelimit: "02:00:00"
}

daily-bench-caps: {
capabilities: [x52, linux, amd64, daily]
timelimit: "02:00:00"
}

post-process-and-upload-results: [
@@ -168,6 +170,12 @@ chunky-benchmarks: {
] ${post-process-and-upload-results}
}

psd-benchmarks: {
run: ${setup-benchmarks} [
[mx, benchmark, psd]
] ${post-process-and-upload-results}
}

builds: [
{name: ruby-test-fast} ${common} ${gate-caps} {run: [${jt} [test, fast]]},
{name: ruby-test-specs-command-line} ${common} ${gate-caps} {run: [${jt} [test, specs, ":command_line"]]},
@@ -200,5 +208,10 @@ builds: [
{name: ruby-benchmarks-chunky-noindy} ${common} ${no-graal} ${daily-bench-caps} ${jruby-noindy-benchmark} ${chunky-benchmarks},
{name: ruby-benchmarks-chunky-indy} ${common} ${no-graal} ${daily-bench-caps} ${jruby-indy-benchmark} ${chunky-benchmarks},
{name: ruby-benchmarks-chunky-graal-core} ${common} ${graal-core} ${bench-caps} ${jruby-truffle} ${chunky-benchmarks},
{name: ruby-benchmarks-chunky-graalvm} ${common} ${graalvm} ${bench-caps} ${jruby-truffle} ${chunky-benchmarks}
{name: ruby-benchmarks-chunky-graalvm} ${common} ${graalvm} ${bench-caps} ${jruby-truffle} ${chunky-benchmarks},

{name: ruby-benchmarks-psd-noindy} ${common} ${no-graal} ${daily-bench-caps} ${jruby-noindy-benchmark} ${psd-benchmarks},
{name: ruby-benchmarks-psd-indy} ${common} ${no-graal} ${daily-bench-caps} ${jruby-indy-benchmark} ${psd-benchmarks},
{name: ruby-benchmarks-psd-graal-core} ${common} ${graal-core} ${bench-caps} ${jruby-truffle} ${psd-benchmarks},
{name: ruby-benchmarks-psd-graalvm} ${common} ${graalvm} ${bench-caps} ${jruby-truffle} ${psd-benchmarks}
]
49 changes: 49 additions & 0 deletions mx.jruby/mx_jruby.py
Original file line number Diff line number Diff line change
@@ -324,8 +324,57 @@ def benchmarks(self):
def time(self):
return chunky_benchmark_time

psd_benchmarks = [
'psd-color-cmyk-to-rgb',
'psd-compose-color-burn',
'psd-compose-color-dodge',
'psd-compose-darken',
'psd-compose-difference',
'psd-compose-exclusion',
'psd-compose-hard-light',
'psd-compose-hard-mix',
'psd-compose-lighten',
'psd-compose-linear-burn',
'psd-compose-linear-dodge',
'psd-compose-linear-light',
'psd-compose-multiply',
'psd-compose-normal',
'psd-compose-overlay',
'psd-compose-pin-light',
'psd-compose-screen',
'psd-compose-soft-light',
'psd-compose-vivid-light',
'psd-imageformat-layerraw-parse-raw',
'psd-imageformat-rle-decode-rle-channel',
'psd-imagemode-cmyk-combine-cmyk-channel',
'psd-imagemode-greyscale-combine-greyscale-channel',
'psd-imagemode-rgb-combine-rgb-channel',
'psd-renderer-blender-compose',
'psd-renderer-clippingmask-apply',
'psd-renderer-mask-apply',
'psd-util-clamp',
'psd-util-pad2',
'psd-util-pad4'
]

psd_benchmark_time = 120

class PSDBenchmarkSuite(AllBenchmarksBenchmarkSuite):
def name(self):
return 'psd'

def directory(self):
return 'psd.rb'

def benchmarks(self):
return psd_benchmarks

def time(self):
return psd_benchmark_time

mx_benchmark.add_bm_suite(AllocationBenchmarkSuite())
mx_benchmark.add_bm_suite(MinHeapBenchmarkSuite())
mx_benchmark.add_bm_suite(TimeBenchmarkSuite())
mx_benchmark.add_bm_suite(ClassicBenchmarkSuite())
mx_benchmark.add_bm_suite(ChunkyBenchmarkSuite())
mx_benchmark.add_bm_suite(PSDBenchmarkSuite())

0 comments on commit c0c21f4

Please sign in to comment.