Skip to content

Commit

Permalink
Benchmarking results
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Nov 15, 2023
1 parent 18b6aaf commit 0c1ada9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion results/RESULTS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This is because the runtime library is served from an in-memory file system with
In short runs, Tebako loses because the package includes many files and components that are not used by the application, but are still loaded into memory.
This creates a penalty of 0.3 seconds, which is however negligible in runs experiments.

== coradoc Gem
== coradoc gem

https://rubygems.org/gems/coradoc

Expand Down Expand Up @@ -69,6 +69,39 @@ Also the test shows that there is no difference in code execution between native

image::coradoc-benchmarking.jpg[coradoc benchmarking results]

== emf2svg gem

https://rubygems.org/gems/emf2svg

```
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
```

image::emf2svg-benchmarking.jpg[emf2svg benchmarking results]

== Execution environment

```
Expand Down
Binary file modified results/img/coradoc-benchmarking.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added results/img/emf2svg-benchmarking.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/raw/results.xlsx
Binary file not shown.

0 comments on commit 0c1ada9

Please sign in to comment.