@@ -18,7 +18,7 @@ fn python_parse_numeric(bench: &mut Bencher) {
1818 )
1919 . unwrap ( )
2020 } ) ;
21- } )
21+ } ) ;
2222}
2323
2424fn python_parse_other ( bench : & mut Bencher ) {
@@ -29,10 +29,10 @@ fn python_parse_other(bench: &mut Bencher) {
2929 . python_parse ( py, br#"["string", true, false, null]"# )
3030 . unwrap ( )
3131 } ) ;
32- } )
32+ } ) ;
3333}
3434
35- fn _python_parse_file ( path : & str , bench : & mut Bencher , cache_mode : StringCacheMode ) {
35+ fn python_parse_file ( path : & str , bench : & mut Bencher , cache_mode : StringCacheMode ) {
3636 let mut file = File :: open ( path) . unwrap ( ) ;
3737 let mut contents = String :: new ( ) ;
3838 file. read_to_string ( & mut contents) . unwrap ( ) ;
@@ -48,56 +48,56 @@ fn _python_parse_file(path: &str, bench: &mut Bencher, cache_mode: StringCacheMo
4848 . python_parse ( py, json_data)
4949 . unwrap ( )
5050 } ) ;
51- } )
51+ } ) ;
5252}
5353
5454fn python_parse_massive_ints_array ( bench : & mut Bencher ) {
55- _python_parse_file ( "./benches/massive_ints_array.json" , bench, StringCacheMode :: All ) ;
55+ python_parse_file ( "./benches/massive_ints_array.json" , bench, StringCacheMode :: All ) ;
5656}
5757
5858fn python_parse_medium_response_not_cached ( bench : & mut Bencher ) {
59- _python_parse_file ( "./benches/medium_response.json" , bench, StringCacheMode :: None ) ;
59+ python_parse_file ( "./benches/medium_response.json" , bench, StringCacheMode :: None ) ;
6060}
6161
6262fn python_parse_medium_response ( bench : & mut Bencher ) {
63- _python_parse_file ( "./benches/medium_response.json" , bench, StringCacheMode :: All ) ;
63+ python_parse_file ( "./benches/medium_response.json" , bench, StringCacheMode :: All ) ;
6464}
6565
6666fn python_parse_true_object_not_cached ( bench : & mut Bencher ) {
67- _python_parse_file ( "./benches/true_object.json" , bench, StringCacheMode :: None ) ;
67+ python_parse_file ( "./benches/true_object.json" , bench, StringCacheMode :: None ) ;
6868}
6969
7070fn python_parse_string_array_not_cached ( bench : & mut Bencher ) {
71- _python_parse_file ( "./benches/string_array.json" , bench, StringCacheMode :: None ) ;
71+ python_parse_file ( "./benches/string_array.json" , bench, StringCacheMode :: None ) ;
7272}
7373
7474fn python_parse_string_array ( bench : & mut Bencher ) {
75- _python_parse_file ( "./benches/string_array.json" , bench, StringCacheMode :: All ) ;
75+ python_parse_file ( "./benches/string_array.json" , bench, StringCacheMode :: All ) ;
7676}
7777
7878fn python_parse_x100_not_cached ( bench : & mut Bencher ) {
79- _python_parse_file ( "./benches/x100.json" , bench, StringCacheMode :: None ) ;
79+ python_parse_file ( "./benches/x100.json" , bench, StringCacheMode :: None ) ;
8080}
8181
8282fn python_parse_x100 ( bench : & mut Bencher ) {
83- _python_parse_file ( "./benches/x100.json" , bench, StringCacheMode :: All ) ;
83+ python_parse_file ( "./benches/x100.json" , bench, StringCacheMode :: All ) ;
8484}
8585
8686fn python_parse_string_array_unique_not_cached ( bench : & mut Bencher ) {
87- _python_parse_file ( "./benches/string_array_unique.json" , bench, StringCacheMode :: None ) ;
87+ python_parse_file ( "./benches/string_array_unique.json" , bench, StringCacheMode :: None ) ;
8888}
8989
9090fn python_parse_string_array_unique ( bench : & mut Bencher ) {
91- _python_parse_file ( "./benches/string_array_unique.json" , bench, StringCacheMode :: All ) ;
91+ python_parse_file ( "./benches/string_array_unique.json" , bench, StringCacheMode :: All ) ;
9292}
9393
9494fn python_parse_true_object ( bench : & mut Bencher ) {
95- _python_parse_file ( "./benches/true_object.json" , bench, StringCacheMode :: All ) ;
95+ python_parse_file ( "./benches/true_object.json" , bench, StringCacheMode :: All ) ;
9696}
9797
9898/// Note - caching strings should make no difference here
9999fn python_parse_true_array ( bench : & mut Bencher ) {
100- _python_parse_file ( "./benches/true_array.json" , bench, StringCacheMode :: All ) ;
100+ python_parse_file ( "./benches/true_array.json" , bench, StringCacheMode :: All ) ;
101101}
102102
103103benchmark_group ! (
0 commit comments