Skip to content

Instantly share code, notes, and snippets.

@osyoyu
osyoyu / _ruby-association-grant-2023-final-report.md
Last active March 20, 2024 08:56
Ruby のパフォーマンスプロファイリングの改善 (Ruby Association Grant 2023 最終報告)

Ruby のための新しいプロファイラ Pf2 の開発 (Ruby Association Grant 2023 最終報告)

Daisuke Aritomo (osyoyu)

新たな Ruby プロファイラ "Pf2" を開発し、Gem としてリリースした。既存のプロファイラにはない、以下のような機能を備えたプロファイラを目指し、現在も開発を継続している。

  • プロファイリングの対象とする Ruby Thread を制御できる
  • 実時刻 (wall time) ベースのプロファイルの場合、あるサンプル時刻において複数の Ruby Thread のサンプルを収集できる
    • 既存のプロファイラでは1つの Thread のみのサンプルを収集する
@osyoyu
osyoyu / a.rs
Last active December 10, 2023 15:53
associated function `new` is never used
// a/mymod.rs ではなく mymod.rs をむりやり使う
#[path="./mymod.rs"]
pub mod mymod;
@osyoyu
osyoyu / ruby-build-soleil-branch
Created November 12, 2023 07:57
ruby-build-soleil-branch
# Based on https://github.com/rbenv/ruby-build/blob/master/share/ruby-build/3.3.0-dev
install_package "openssl-3.1.4" "https://www.openssl.org/source/openssl-3.1.4.tar.gz#840af5366ab9b522bde525826be3ef0fb0af81c6a9ebd84caa600fea1731eee3" openssl --if needs_openssl_102_300
install_git "ruby-soleil" "https://github.com/soleil-rising/ruby.git" "soleil" autoconf standard_build standard_install_with_bundled_gems verify_openssl
@osyoyu
osyoyu / test
Created December 29, 2022 15:12
test
test
@osyoyu
osyoyu / bench.go
Created May 4, 2020 16:59
saikoh.tk benchmarker
package main
import (
"flag"
"log"
"net/url"
"sync"
"time"
"github.com/gorilla/websocket"
@osyoyu
osyoyu / 00_timeline.md
Created September 17, 2018 04:08 — forked from south37/00_timeline.md
ISUCON Cheat Sheet
@osyoyu
osyoyu / package.json
Created March 30, 2018 10:38
最近のpackage.json事情
{
"name": "foobar",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"dev-server": "webpack-dev-server",
"build": "NODE_ENV=production webpack"
},
"dependencies": {
@osyoyu
osyoyu / Rodin.xml
Created February 6, 2018 02:30
~/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Themes.localized/Theme Fonts
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<a:fontScheme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Rodin">
<a:majorFont>
<a:latin typeface="FOT-Rodin ProN EB" />
<a:ea typeface="FOT-Rodin ProN EB" />
<a:cs typeface="" />
</a:majorFont>
<a:minorFont>
<a:latin typeface="FOT-Rodin ProN B" />
<a:ea typeface="FOT-Rodin ProN B" />
@osyoyu
osyoyu / webpack.config.js
Created January 15, 2018 15:42
最近の webpack.config.js
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const isDevelopment = process.env.NODE_ENV !== 'production';
let config = {
entry: {
app: [
@osyoyu
osyoyu / Dockerfile
Created December 5, 2017 09:17
checking that generated files are newer than configure... で止まるやつ
FROM alpine:3.7
RUN apk update
RUN apk add \
autoconf \
automake \
boost-dev \
curl \
gcc \
g++ \