mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:24:42 +00:00
[benchmark] Fix oversights from the benchmark fork.
The shared libraries for the FfiBoringssl benchmark had been moved up a level but unfortunately the same change wasn't made for the FfiCall benchmark. The IsolateJson benchmark had a typo in the path and broke. Change-Id: Iec2fec1d5508022d9cfbfb040d80c74b078a0640 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150024 Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
parent
10df757a49
commit
0f505e0e08
2
DEPS
2
DEPS
|
@ -501,7 +501,7 @@ deps = {
|
|||
],
|
||||
"dep_type": "cipd",
|
||||
},
|
||||
Var("dart_root") + "/benchmarks/FfiCall/dart/native/out/": {
|
||||
Var("dart_root") + "/benchmarks/FfiCall/native/out/": {
|
||||
"packages": [
|
||||
{
|
||||
"package": "dart/benchmarks/fficall",
|
||||
|
|
|
@ -20,7 +20,7 @@ import 'dlopen_helper.dart';
|
|||
//
|
||||
|
||||
DynamicLibrary ffiTestFunctions = dlopenPlatformSpecific("native_functions",
|
||||
path: Platform.script.resolve("native/out/").path);
|
||||
path: Platform.script.resolve("../native/out/").path);
|
||||
|
||||
typedef NativeFunction1Uint8 = Uint8 Function(Uint8);
|
||||
typedef Function1int = int Function(int);
|
||||
|
|
|
@ -20,7 +20,7 @@ import 'dlopen_helper.dart';
|
|||
//
|
||||
|
||||
DynamicLibrary ffiTestFunctions = dlopenPlatformSpecific("native_functions",
|
||||
path: Platform.script.resolve("native/out/").path);
|
||||
path: Platform.script.resolve("../native/out/").path);
|
||||
|
||||
typedef NativeFunction1Uint8 = Uint8 Function(Uint8);
|
||||
typedef Function1int = int Function(int);
|
||||
|
|
|
@ -115,7 +115,7 @@ class BenchmarkConfig {
|
|||
|
||||
Future<void> main() async {
|
||||
final jsonString =
|
||||
File('benchmarks/IsolateJson2/dart/sample.json').readAsStringSync();
|
||||
File('benchmarks/IsolateJson/dart2/sample.json').readAsStringSync();
|
||||
final json250KB = utf8.encode(jsonString); // 294356 bytes
|
||||
final decoded = json.decode(utf8.decode(json250KB));
|
||||
final decoded1MB = <dynamic, dynamic>{
|
||||
|
|
Loading…
Reference in a new issue