-
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.
Documented vectory gem benchmarking results (#5)
- Loading branch information
Showing
10 changed files
with
75 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
= Tebako benchmarking | ||
|
||
Tebako (https://github.com/tamatebako/tebako) is an executable packager. | ||
This repository contains scripts that are used for tebako benchmarking and benchmarking results which are available | ||
This repository contains scripts that are used for https://github.com/tamatebako/tebako[tebako] benchmarking and benchmarking results which are available | ||
at results folder at https://github.com/tamatebako/tebako-benchmarking/blob/main/results/RESULTS.adoc | ||
|
||
This is work area and does not not pretend to have a production quality or be reusable in any way. | ||
This repository is a 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
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.
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 "vectory", "~> 0.2.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require "tempfile" | ||
|
||
puts "Hello! This is vectory 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 "vectory" | ||
|
||
svg = Vectory::Emf.from_path(File.join(__dir__, "fixtures", "img.emf")).to_svg.content | ||
|
||
Tempfile.create(["output", ".svg"]) do |tempfile| | ||
tempfile.write(svg) | ||
puts "SVG written to #{tempfile.path}" | ||
end | ||
end |