This file contains hidden or 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
const fs = require('fs'); | |
const path = require('path'); | |
// https://github.com/shinnn/spdx-license-ids/blob/master/index.json | |
const spdx = [ | |
'0BSD', | |
'AAL', | |
'Abstyles', | |
'Adobe-2006', | |
'Adobe-Glyph', |
This file contains hidden or 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
t = Time.now; count = (1..100).select { Airbrake.notify(:error_class => "Testing success rate",:error_message => "Error Message") }.length; puts "success: #{count / 100.0}, avg time: #{(Time.now - t) / 100.0}" |