-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
141 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
= Tebako-benchmarking | ||
|
||
== Benchmarking tool for tebako packages | ||
= Tebako benchmarking | ||
|
||
Tebako (https://github.com/tamatebako/tebako) is an executable packager. | ||
tebako-benchmarking gem provides a tool to measure performance of the packages created with tebako. | ||
|
||
== Results | ||
|
||
Benchmarking results are available at results folder. | ||
|
||
== Development | ||
|
||
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment. | ||
|
||
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org). | ||
|
||
== Contributing | ||
This repository contains scripts that are used for tebako benchmarking and benchmarking results which are available | ||
at results folder at https://github.com/tamatebako/tebako-benchmarking/blob/main/results/RESULTS.adoc | ||
|
||
Bug reports and pull requests are welcome on GitHub at https://github.com/tamatebako/tebako-benchmarking. | ||
This is work area and does not not pretend to have a production quality or be reusable in any way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "emf2svg", "~> 1.4.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require "tempfile" | ||
|
||
puts "Hello! This is emf2svg benchmarking test." | ||
|
||
if (argv = ARGV).empty? | ||
puts "No arguments given" | ||
exit(1) | ||
end | ||
|
||
if argv[0].to_i < 1 | ||
puts "Argument must be a positive integer" | ||
exit(1) | ||
end | ||
|
||
argv[0].to_i.times do | ||
require "emf2svg" | ||
|
||
svg = Emf2svg.from_file(File.join(__dir__, "fixtures", "img.emf")) | ||
|
||
Tempfile.create(["output", ".svg"]) do |tempfile| | ||
tempfile.write(svg) | ||
puts "SVG written to #{tempfile.path}" | ||
end | ||
end |
Binary file not shown.