Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 1 | # This file contains a list of Mojo benchmarks. For description of the file |
| 2 | # format, see `mojo_benchmark --help`. |
| 3 | |
| 4 | benchmarks = [ |
| 5 | { |
Przemyslaw Pietrzkiewicz | 12730b7 | 2015-10-28 10:15:32 +0100 | [diff] [blame] | 6 | 'name': 'dart init', |
Zachary Anderson | 1fc008f | 2015-11-12 13:58:33 -0800 | [diff] [blame] | 7 | 'app': 'https://core.mojoapps.io/dart_startup.mojo', |
Przemyslaw Pietrzkiewicz | 421c1f7 | 2015-09-08 14:52:36 +0200 | [diff] [blame] | 8 | 'duration': 10, |
| 9 | 'measurements': [ |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 10 | { |
| 11 | 'name': 'initialize', |
Zachary Anderson | 653331f | 2015-11-19 09:57:09 -0800 | [diff] [blame] | 12 | 'spec': 'time_until/Dart/initialized' |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 13 | }, |
| 14 | { |
| 15 | 'name': 'accept connection', |
Zachary Anderson | 653331f | 2015-11-19 09:57:09 -0800 | [diff] [blame] | 16 | 'spec': 'time_between/Dart/initialized/Dart/connected', |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 17 | } |
John McCutchan | 7d6b3eb | 2016-02-01 13:38:56 -0800 | [diff] [blame] | 18 | ], |
| 19 | 'shell-args': [ |
John McCutchan | d8a0f59 | 2016-02-04 14:13:27 -0800 | [diff] [blame] | 20 | '--args-for=mojo:dart_content_handler --dart-timeline', |
Przemyslaw Pietrzkiewicz | 421c1f7 | 2015-09-08 14:52:36 +0200 | [diff] [blame] | 21 | ] |
| 22 | }, |
| 23 | { |
Przemyslaw Pietrzkiewicz | 12730b7 | 2015-10-28 10:15:32 +0100 | [diff] [blame] | 24 | 'name': 'dart init with handler', |
Przemyslaw Pietrzkiewicz | a9d3cd2 | 2015-10-01 17:12:27 +0200 | [diff] [blame] | 25 | 'app': 'https://core.mojoapps.io/dart_handler_running.mojo', |
| 26 | 'duration': 10, |
| 27 | 'measurements': [ |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 28 | { |
| 29 | 'name': 'initialize', |
Zachary Anderson | 653331f | 2015-11-19 09:57:09 -0800 | [diff] [blame] | 30 | 'spec': 'time_between/Dart/connecting/Dart/initialized', |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 31 | } |
John McCutchan | 7d6b3eb | 2016-02-01 13:38:56 -0800 | [diff] [blame] | 32 | ], |
| 33 | 'shell-args': [ |
John McCutchan | d8a0f59 | 2016-02-04 14:13:27 -0800 | [diff] [blame] | 34 | '--args-for=mojo:dart_content_handler --dart-timeline', |
Przemyslaw Pietrzkiewicz | a9d3cd2 | 2015-10-01 17:12:27 +0200 | [diff] [blame] | 35 | ] |
| 36 | }, |
| 37 | { |
Zachary Anderson | 8182fbd | 2015-12-03 11:05:19 -0800 | [diff] [blame] | 38 | 'name': 'dart init no observatory', |
| 39 | 'app': 'https://core.mojoapps.io/dart_startup.mojo', |
| 40 | 'duration': 10, |
| 41 | 'measurements': [ |
| 42 | { |
| 43 | 'name': 'initialize', |
| 44 | 'spec': 'time_until/Dart/initialized' |
| 45 | }, |
| 46 | { |
| 47 | 'name': 'accept connection', |
| 48 | 'spec': 'time_between/Dart/initialized/Dart/connected', |
| 49 | } |
| 50 | ], |
| 51 | 'shell-args': [ |
John McCutchan | d8a0f59 | 2016-02-04 14:13:27 -0800 | [diff] [blame] | 52 | '--args-for=mojo:dart_content_handler --disable-observatory --dart-timeline', |
Zachary Anderson | 8182fbd | 2015-12-03 11:05:19 -0800 | [diff] [blame] | 53 | ] |
| 54 | }, |
| 55 | { |
John McCutchan | c3c60ff | 2016-01-04 13:05:18 -0800 | [diff] [blame] | 56 | 'name': 'dart init run (message loop)', |
| 57 | 'app': 'https://core.mojoapps.io/dart_startup.mojo', |
| 58 | 'duration': 10, |
| 59 | 'measurements': [ |
| 60 | { |
| 61 | 'name': 'initialize', |
| 62 | 'spec': 'time_until/Dart/initialized' |
| 63 | }, |
| 64 | { |
| 65 | 'name': 'accept connection', |
| 66 | 'spec': 'time_between/Dart/initialized/Dart/connected', |
| 67 | } |
| 68 | ], |
| 69 | 'shell-args': [ |
John McCutchan | d8a0f59 | 2016-02-04 14:13:27 -0800 | [diff] [blame] | 70 | '--args-for=mojo:dart_content_handler --run-on-message-loop --dart-timeline', |
John McCutchan | c3c60ff | 2016-01-04 13:05:18 -0800 | [diff] [blame] | 71 | ] |
| 72 | }, |
| 73 | { |
Przemyslaw Pietrzkiewicz | 12730b7 | 2015-10-28 10:15:32 +0100 | [diff] [blame] | 74 | 'name': 'cpp init', |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 75 | 'app': 'https://core.mojoapps.io/trace_me.mojo', |
| 76 | 'duration': 10, |
| 77 | 'measurements': [ |
Przemyslaw Pietrzkiewicz | 077e43d | 2015-10-28 11:04:22 +0100 | [diff] [blame] | 78 | { |
| 79 | 'name': 'initialize', |
| 80 | 'spec': 'time_until/trace_me/initialized', |
| 81 | }, |
| 82 | { |
| 83 | 'name': 'accept connection', |
| 84 | 'spec': 'time_between/trace_me/initialized/trace_me/connected', |
| 85 | } |
Przemyslaw Pietrzkiewicz | 4076f64 | 2015-09-14 11:54:30 +0200 | [diff] [blame] | 86 | ], |
| 87 | 'shell-args': [ |
| 88 | '--args-for=https://core.mojoapps.io/trace_me.mojo --early-tracing', |
Przemyslaw Pietrzkiewicz | 1d90994 | 2015-08-28 16:27:56 +0200 | [diff] [blame] | 89 | ] |
| 90 | }, |
| 91 | ] |
| 92 | |