File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ import 'package:dartoos/dartoos.dart';
10
10
/// ```dart /example/base64_benchmark.dart```
11
11
///
12
12
/// or
13
- ///
13
+ ///
14
14
/// Compile to 'jit'.
15
15
/// ```dart compile jit-snapshot example/base64_benchmark.dart```
16
16
/// ```dart /example/base64_benchmark.jit```
17
17
Future <void > main () async {
18
18
print ("Dartoos base64 vs. Dart's built-in base64..." );
19
19
20
- const wordLength = 15000000 ; const elegibleChars =
20
+ const wordLength = 15000000 ;
21
+ const elegibleChars =
21
22
r'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-*/|\;:?[]{}()!@#$%*' ;
22
23
// The bytes of a randomly generated word whose length is [wordLength]
23
24
// characters.
@@ -43,10 +44,10 @@ Future<void> main() async {
43
44
final dartoosDecodingTime =
44
45
DateTime .now ().millisecondsSinceEpoch - dartoosDecodingStart;
45
46
46
- print ('\n --- Encoding elapsed times ---' );
47
+ print ('\n --- Encoding elapsed times ---' );
47
48
print ('Dartoos base64-encoding: $dartoosEncodingTime ms' );
48
49
print ('Builtin base64-encoding: $dartEncodingTime ms' );
49
- print ('\n --- Decoding elapsed times ---' );
50
+ print ('\n --- Decoding elapsed times ---' );
50
51
print ('Dartoos base64-decoding: $dartoosDecodingTime ms' );
51
52
print ('Builtin base64-decoding: $dartDecodingTime ms' );
52
53
print ('\n --- Encoding/decoding results comparison ---' );
You can’t perform that action at this time.
0 commit comments