<commit_before>#!/usr/bin/env ruby -wKU
# encoding: utf-8

require 'Jamoma'

environment = TTObject.new "environment"
environment.set "benchmarking", 1

cpu_total = 0.0;

puts
puts "TESTING LINEAR FUNCTION"
o = TTObject.new "linear"
o.send "test"
err, cpu = o.send "getProcessingBenchmark", 1
cpu_total += cpu

puts "TESTING SMOOTHPOLYNOMIALFUNCTION WINDOW"
o = TTObject.new "smoothPolynomial"
o.send "test"
err, cpu = o.send "getProcessingBenchmark", 1
cpu_total += cpu

puts
puts "time spent calculating audio process method: #{cpu_total} µs"
puts<commit_msg>FunctionLib UnitTest: no longer need to provide bogus args when sending messages thanks to 2-arg message work<commit_after>#!/usr/bin/env ruby -wKU
# encoding: utf-8

require 'Jamoma'

environment = TTObject.new "environment"
environment.set "benchmarking", 1

cpu_total = 0.0;

puts
puts "TESTING LINEAR FUNCTION"
o = TTObject.new "linear"
o.send "test"
err, cpu = o.send "getProcessingBenchmark"
cpu_total += cpu

puts "TESTING SMOOTHPOLYNOMIALFUNCTION WINDOW"
o = TTObject.new "smoothPolynomial"
o.send "test"
err, cpu = o.send "getProcessingBenchmark"
cpu_total += cpu

puts
puts "time spent calculating audio process method: #{cpu_total} µs"
puts
{'fraction_non_alphanumeric': 0.10726072607260725, 'fraction_numerical': 0.009075907590759076, 'mean_word_length': 5.38421052631579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1846016', 'n_tokens_mistral': 464, 'n_tokens_neox': 432, 'n_words': 131}