File: bench.rb

package info (click to toggle)
chipmunk 7.0.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,968 kB
  • sloc: ansic: 29,265; objc: 4,313; ruby: 409; makefile: 10; sh: 1
file content (12 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
results = []

cmd = "|build/Release/ChipmunkDemo.app/Contents/MacOS/ChipmunkDemo -bench -trial"
open(cmd) do|io|
	while str = io.gets do
		puts str
		results << str.split[2]
	end
end

puts "Placing results in paste buffer."
open("|pbcopy", "w"){|io| io.puts results}