{"id":18343727,"url":"https://github.com/nunorc/benchmark-apps","last_synced_at":"2025-10-08T10:24:41.700Z","repository":{"id":137587124,"uuid":"102380970","full_name":"nunorc/Benchmark-Apps","owner":"nunorc","description":"simple module to benchmark applications","archived":false,"fork":false,"pushed_at":"2017-09-05T14:02:41.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T21:54:49.392Z","etag":null,"topics":["perl","perl-module"],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/nunorc.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T16:26:32.000Z","updated_at":"2017-09-04T16:29:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ab2fd99-0f73-46b6-8bc0-997ec3b3395b","html_url":"https://github.com/nunorc/Benchmark-Apps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nunorc/Benchmark-Apps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunorc%2FBenchmark-Apps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunorc%2FBenchmark-Apps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunorc%2FBenchmark-Apps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunorc%2FBenchmark-Apps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nunorc","download_url":"https://codeload.github.com/nunorc/Benchmark-Apps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunorc%2FBenchmark-Apps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264925753,"owners_count":23684198,"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":["perl","perl-module"],"created_at":"2024-11-05T20:41:28.656Z","updated_at":"2025-10-08T10:24:36.662Z","avatar_url":"https://github.com/nunorc.png","language":"Perl","readme":"# NAME\n\nBenchmark::Apps - simple interface to benchmark applications.\n\n# VERSION\n\nversion 0.05\n\n# SYNOPSIS\n\nThis module provides a simple interface to benchmark applications (not\nnecessarily Perl applications).\n\n    use Benchmark::Apps;\n\n    my $commands = {\n         cmd1 =\u003e 'run_command_1 with arguments',\n         cmd2 =\u003e 'run_command_2 with other arguments',\n       };\n\n    my $conf = { pretty_print=\u003e1, iters=\u003e5 };\n\n    Benchmark::Apps::run( $commands, $conf );\n\n# DESCRIPTION\n\nThis module can be used to perform simple benchmarks on programs. Basically,\nit can be used to benchmark any program that can be called with a system\ncall.\n\n# FUNCTIONS\n\n## run\n\nThis function is used to run benchmarks. It runs the commands described in \nthe hash passed as argument. It returns an hash of the results each command.\nA second hash reference can be passed to this function: a configuration\nhash reference. The values passed in this hash override the default\nbehaviour of the run function. The configuration options available at this\nmoment are:\n\n- `pretty_print`\n\n    When enabled it will print to stdout, in a formatted way the results\n    of the benchmarks as they finish running. This option should de used\n    when you want to run benchmarks and want to see the results progress\n    as the tests run. You can disable it, so you can perform automated\n    benchmarks.\n\n    Options: true (1) or false (0)\n\n    Default: false (0)\n\n- `iters`\n\n    This is the number of iterations that each test will run.\n\n    Options: integer greater than 1\n\n    Default: 5\n\n- `args`\n\n    This is a reference to an anonymous function that will calculate the\n    command argument based on the iteraction number.\n\n    Options: any function reference that returns a string\n\n    Default: empty function: always returns an empty string, which means no\n    arguments will be given to the command\n\n## pretty\\_print\n\nThis function is used to print the final result to STDOUT before returning \nfrom the `run` function.\n\n## time\\_this\n\nThis function is not meant to be used directly, although it can be useful.\nIt receives a command line and executes it via system, taking care\nof registering the elapsed time.\n\n# EXAMPLES\n\nCheck files in `examples/`.\n\n# AUTHORS\n\n- Alberto Simões \u003cambs@cpan.org\u003e\n- Nuno Carvalho \u003csmash@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2014 - 2017 by Projecto Natura \u003cnatura@natura.di.uminho.pt\u003e.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunorc%2Fbenchmark-apps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnunorc%2Fbenchmark-apps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunorc%2Fbenchmark-apps/lists"}