Skip to content

Instantly share code, notes, and snippets.

View theniceboy's full-sized avatar
🥰

David Chen theniceboy

🥰
  • 05:19 (UTC -07:00)
View GitHub Profile
@theniceboy
theniceboy / main.dart
Created January 9, 2023 16:58 — forked from Luckey-Elijah/main.dart
Dart Loop Benchmarking
// Adding this line so we can perform the variable assignment: num eachElement = 0;
// ignore_for_file: unused_local_variable
import 'dart:collection';
import 'dart:math';
void main(List<String> args) {
final list = UnmodifiableListView(
List<int>.generate(200000000, (index) => index),
);