From 3fea174c5e5e956d5912c7be6810a2ecc9f862e9 Mon Sep 17 00:00:00 2001 From: actionless Date: Tue, 22 Sep 2015 00:19:20 +0200 Subject: [PATCH] test(benchmark): add for tag switch Closes https://github.com/awesomeWM/awesome/pull/465. --- tests/test-benchmark.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-benchmark.lua b/tests/test-benchmark.lua index c25e153a1..4b3c31905 100644 --- a/tests/test-benchmark.lua +++ b/tests/test-benchmark.lua @@ -87,9 +87,15 @@ local function update_textclock() do_pending_repaint() end +local function e2e_tag_switch() + awful.tag.viewnext() + do_pending_repaint() +end + benchmark(create_wibox, "create wibox") benchmark(update_textclock, "update textclock") benchmark(relayout_textclock, "relayout textclock") benchmark(redraw_textclock, "redraw textclock") +benchmark(e2e_tag_switch, "tag switch") require("_runner").run_steps({ function() return true end })