dart-lang / dart-lang/native

Benchmarks for different coding patterns using dart:ffi

Open
#435 2 comments 0 reactions 0 assignees View on GitHub
package:ffigen
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

Similar to https://github.com/dart-lang/native/issues/718 - it would be nice to have benchmarks to consult for various some non-trivial yet pretty common cases.

For example, what is the performance of an FFI call that returns a fixed size map (a couple of items, some layers) compared to method channels. This should be implemented in all languages, i.e. for Objective-C, that means converting from NSDictionary (or accessing items), to actually compare that to a real-world API that returns a dictionary as its output.

The jnigen issue linked above gives some thoughts on how these benchmarks could be implemented & integrated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.