{"id":15393888,"url":"https://github.com/mitchellh/minitest-speed","last_synced_at":"2025-04-15T23:52:38.426Z","repository":{"id":1668649,"uuid":"2395423","full_name":"mitchellh/minitest-speed","owner":"mitchellh","description":"Proof of concept speed tests using minitest.","archived":false,"fork":false,"pushed_at":"2011-09-15T21:12:21.000Z","size":92,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T05:59:26.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitchellh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-15T21:12:11.000Z","updated_at":"2019-11-09T02:36:10.000Z","dependencies_parsed_at":"2022-09-07T01:52:35.547Z","dependency_job_id":null,"html_url":"https://github.com/mitchellh/minitest-speed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fminitest-speed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fminitest-speed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fminitest-speed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Fminitest-speed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/minitest-speed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T15:20:40.572Z","updated_at":"2025-04-15T23:52:38.408Z","avatar_url":"https://github.com/mitchellh.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# minitest-speed\n\nThis is an extension to [minitest](https://github.com/seattlerb/minitest)\nwhich adds speed tests to the mix. Speed tests are simply methods which are\ntimed, and their timing date is outputted. If this timing data is saved somewhere,\nit can be graphed later and viewed.\n\n**WARNING:** This is a _proof of concept_. It works, but is not intended --\nin its current form -- to be used for production tests.\n\n## Example\n\n### Defining And Using a Speed Test\n\nDefine a test class:\n\n```ruby\nrequire \"minitest/autorun\"\nrequire \"minitest/speed\"\n\nclass MyTest \u003c MiniTest::Speed::TestCase\n  def test_speed_of_hash_creation\n    Hash.new\n  end\nend\n```\n\nRun them:\n\n    $ SPEED=1 ruby my_test.rb\n    Started\n    test_speed_of_hash_creation:   0.000000   0.000000   0.000000 (  0.000019)\n\n    Finished in 0.000753 seconds.\n\n    1 tests, 0 assertions, 0 failures, 0 errors, 0 skips\n\nWith `SPEED` set, only the speed tests are run, and their output is easily visible.\nIf `SPEED` is not set, then only non-speed tests are run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fminitest-speed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Fminitest-speed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Fminitest-speed/lists"}