1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-07-01 08:10:57 +02:00
tmux-fingers/spec/acceptance/performance_spec.rb

17 lines
537 B
Ruby
Raw Permalink Normal View History

2020-05-02 11:45:56 +02:00
require 'spec_helper'
require_relative '../tmuxomatic_setup.rb'
2022-05-14 12:34:08 +02:00
require 'benchmark'
2020-05-02 11:45:56 +02:00
2022-05-14 12:34:08 +02:00
describe 'performance', performance: true do
include_context 'tmuxomatic setup'
let(:config_name) { 'benchmark' }
2022-05-18 15:11:54 +02:00
let(:tmuxomatic_window_width) { 100 }
let(:tmuxomatic_window_height) { 100 }
2020-05-02 11:45:56 +02:00
2022-05-14 12:34:08 +02:00
it 'runs smooooooth' do
ruby = RbConfig.ruby
2022-05-18 15:11:54 +02:00
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"))
2020-05-02 11:45:56 +02:00
end
end