Download flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_paths.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 799 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_paths.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_paths.dart
-
curl -L -o bench_paths.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/benchmarks/macrobenchmarks/lib/src/web/bench_paths.dart
799 Bytes
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'bench_paths_recording.dart' as recording; | |
| import 'recorder.dart'; | |
| /// Measure the performance of path construction. | |
| /// | |
| /// This benchmarks was generated by running flutter gallery and recording | |
| /// path calls. | |
| class BenchPathRecording extends RawRecorder { | |
| BenchPathRecording() : super(name: benchmarkName); | |
| static const String benchmarkName = 'bench_path_recording'; | |
| Future<void> setUpAll() async {} | |
| void body(Profile profile) { | |
| profile.record('recordPathConstruction', () { | |
| for (int i = 1; i <= 10; i++) { | |
| recording.createPaths(); | |
| } | |
| }, reported: true); | |
| } | |
| } | |