1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-06-29 07:50:56 +02:00
tmux-fingers/spec/acceptance/performance_spec.rb
2022-05-18 15:11:54 +02:00

17 lines
537 B
Ruby

require 'spec_helper'
require_relative '../tmuxomatic_setup.rb'
require 'benchmark'
describe 'performance', performance: true do
include_context 'tmuxomatic setup'
let(:config_name) { 'benchmark' }
let(:tmuxomatic_window_width) { 100 }
let(:tmuxomatic_window_height) { 100 }
it 'runs smooooooth' do
ruby = RbConfig.ruby
exec('COLUMNS=$COLUMNS LINES=$LINES ruby spec/fill_screen.rb')
exec(%(hyperfine --export-json /tmp/perf.json "#{ruby} --disable-gems bin/fingers start fingers-mode $TMUX_PANE self"))
end
end