<commit_before>"use strict";

var speedy = require ("../lib");

speedy.run ({
	Number: function (){
		Number ("0x10");
	},
	"+": function (){
		+"0x10";
	}
});

/*
File: number-coercion.js

Node v0.10.13
V8 v3.14.5.9
Speedy v0.0.7

Benchmarks: 2
Timeout: 1000ms (1s 0ms)
Samples: 3
Total time per benchmark: ~3000ms (3s 0ms)
Total time: ~6000ms (6s 0ms)

Higher is better (ops/sec)

Number
  17,611,244 ± 0.1%
+
  16,173,311 ± 0.0%

Elapsed time: 6051ms (6s 51ms)
*/<commit_msg>updated number-coercion<commit_after>"use strict";

var speedy = require ("../lib");

speedy.run ({
	Number: function (){
		Number ("16");
	},
	"+": function (){
		+"16";
	},
	parseInt: function (){
		//It's not the same as Number but shares some functionalities
		parseInt ("16");
	}
});

/*
File: number-coercion.js

Node v0.10.13
V8 v3.14.5.9
Speedy v0.0.7

Benchmarks: 3
Timeout: 1000ms (1s 0ms)
Samples: 3
Total time per benchmark: ~3000ms (3s 0ms)
Total time: ~9000ms (9s 0ms)

Higher is better (ops/sec)

Number
  39,851,676 ± 0.0%
+
  32,630,632 ± 0.0%
parseInt
  58,444,256 ± 0.0%

Elapsed time: 9078ms (9s 78ms)
*/
{'fraction_non_alphanumeric': 0.17785843920145192, 'fraction_numerical': 0.1306715063520871, 'mean_word_length': 3.5204918032786887, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '745306', 'n_tokens_mistral': 571, 'n_tokens_neox': 478, 'n_words': 133}