This file contains hidden or 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
| # frozen_string_literal: true | |
| # Runs JOBS concurrent "decode 12MP JPEG -> quantize(2) -> Group4 TIFF" jobs in | |
| # one Async reactor and reports wall time and the longest time the reactor was | |
| # unable to run a 10ms ticker fiber. | |
| # | |
| # gem install async # Ruby 4.0; async >= 2.26 for IO::Event::WorkerPool | |
| # MAGICK_THREAD_LIMIT=1 ruby offload_benchmark.rb # no worker pool | |
| # MAGICK_THREAD_LIMIT=1 WORKERS=1 ruby offload_benchmark.rb # 1-thread pool | |
| # MAGICK_THREAD_LIMIT=1 WORKERS=4 ruby offload_benchmark.rb # 4-thread pool |
This file contains hidden or 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
| FROM ubuntu:20.04 | |
| RUN apt update && \ | |
| apt install -y tzdata && \ | |
| apt install -y git pkg-config && \ | |
| apt install -y build-essential gcc g++ libx11-dev libxext-dev zlib1g-dev \ | |
| liblcms2-dev libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev \ | |
| libtiff5-dev libwebp-dev gsfonts ghostscript wget | |
| RUN wget https://imagemagick.org/download/releases/ImageMagick-7.0.10-32.tar.xz && \ |
This file contains hidden or 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
| $ ruby -e 'require "rbconfig"; pp RbConfig::CONFIG' | |
| {"DESTDIR"=>"", | |
| "MAJOR"=>"2", | |
| "MINOR"=>"8", | |
| "TEENY"=>"0", | |
| "PATCHLEVEL"=>"-1", | |
| "INSTALL"=>"/usr/bin/install -c", | |
| "EXEEXT"=>"", | |
| "prefix"=>"/Users/watson/.rbenv/versions/2.8.0", | |
| "ruby_install_name"=>"ruby", |
This file contains hidden or 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
| Process: ruby [14019] | |
| Path: /Users/USER/*/ruby | |
| Identifier: ruby | |
| Version: 0 | |
| Code Type: ARM-64 (Native) | |
| Parent Process: zsh [1165] | |
| Responsible: Terminal [1163] | |
| User ID: 501 | |
| Date/Time: 2020-07-08 23:45:09.138 +0900 |
This file contains hidden or 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
| BASERUBY = /Users/watson/.rbenv/shims/ruby --disable=gems | |
| CC = clang -fdeclspec | |
| LD = ld | |
| LDSHARED = clang -fdeclspec -dynamiclib | |
| CFLAGS = -O3 -ggdb3 -Wall -Wextra -Werror=deprecated-declarations -Werror=division-by-zero -Werror=implicit-function-declaration -Werror=implicit-int -Werror=misleading-indentation -Werror=pointer-arith -Werror=shorten-64-to-32 -Werror=write-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Werror=extra-tokens -std=gnu99 -pipe | |
| XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -DRUBY_EXPORT -fPIE -DCANONICALIZATION_FOR_MATHN -I. -I.ext/include/arm64-darwin20 -I./include -I. -I./enc/unicode/12.1.0 | |
| CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT | |
| DLDFLAGS = -Wl,-undefined,dyn |
This file contains hidden or 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
| 0 | 23.76953125 | |
|---|---|---|
| 1 | 31.421875 | |
| 2 | 39.07421875 | |
| 3 | 39.07421875 | |
| 4 | 39.07421875 | |
| 5 | 46.71875 | |
| 6 | 54.36328125 | |
| 7 | 62.00390625 | |
| 8 | 69.66796875 | |
| 9 | 77.31640625 |
This file contains hidden or 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
| 1 | 31.421875 | |
|---|---|---|
| 2 | 39.07421875 | |
| 3 | 39.07421875 | |
| 4 | 39.07421875 | |
| 5 | 46.71875 | |
| 6 | 54.36328125 | |
| 7 | 62.00390625 | |
| 8 | 69.66796875 | |
| 9 | 77.31640625 |
This file contains hidden or 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
| FROM amazonlinux:2018.03 | |
| RUN yum install -y git gcc ruby24-devel ImageMagick ImageMagick-devel | |
| WORKDIR /opt/rmagick |
This file contains hidden or 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
| $ rake | |
| mkdir -p tmp/x86_64-darwin17/RMagick2/2.3.8 | |
| cd tmp/x86_64-darwin17/RMagick2/2.3.8 | |
| /Users/watson/.rbenv/versions/2.3.8/bin/ruby -I. ../../../../ext/RMagick/extconf.rb | |
| checking for brew... yes | |
| checking for clang... yes | |
| checking for pkg-config... yes | |
| checking for outdated ImageMagick version (<= 6.7.7)... no | |
| Usage: file [-bcEhikLlNnprsvzZ0] [-e test] [-f namefile] [-F separator] [-m magicfiles] [-M magicfiles] file... | |
| file -C -m magicfiles |
NewerOlder