platform/packages/wings/benchmark/empty.dart

24 lines
495 B
Dart
Raw Normal View History

2019-05-01 04:29:21 +00:00
import 'dart:async';
import 'dart:io';
import 'package:angel_framework/angel_framework.dart';
import 'util.dart';
const AngelBenchmark emptyBenchmark = _EmptyBenchmark();
2021-06-20 12:37:20 +00:00
void main() => runBenchmarks([emptyBenchmark]);
2019-05-01 04:29:21 +00:00
class _EmptyBenchmark implements AngelBenchmark {
const _EmptyBenchmark();
@override
String get name => 'empty';
@override
FutureOr<void> rawHandler(HttpRequest req, HttpResponse res) {
return res.close();
}
@override
void setupAngel(Angel app) {}
}