Skip to content

Add thousand spec

gitlab-qa-bot requested to merge github/fork/sheerun/thousand-spec into master

Created by: sheerun

Hello :)

I'd like to contribute something I've called "thousand spec" that tests real world performance of executing specs of different sizes, from .5ms to 10ms. Tests spawn external processes so we're 100% sure whole thing is correctly measured.

I hope in the future this test will be expanded to include more real-world code, but I think for now is good enough and does few important things:

  1. It is a regression test so rspec real-world performance isn't slower than its main competitor
  2. Tells rspec how much overhead rspec currently have compared to its main competitor

It turns out RSpec is just max 1.1 (normal tests) - 1.6 (micro tests) times slower

Let's improve this 🔥

Merge request reports