ποΈMicro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct
πΏSemantically Similar Articles (by :title_embedding)
- ποΈ 48.2 π Mar26 What is a Ruby implementation? (π° Ruby Flow)
- ποΈ 49.0 π 2023May12 Ruby 3.3.0-preview1 Released (π° Ruby (EN RSS))
- ποΈ 49.2 π 2023Nov12 Ruby 3.3.0-preview3 Released (π° Ruby (EN RSS))
- ποΈ 49.4 π 2023Dec11 Ruby 3.3.0-rc1 Released (π° Ruby (EN RSS))
- ποΈ 49.4 π 2023Sep14 Ruby 3.3.0-preview2 Released (π° Ruby (EN RSS))
Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct
2024-03-27
-
(from Ruby Flow)
I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments.
empty
[π§ ] [v1/3] title_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>578, :poly_field=>"title", :llm_embeddings_model_name=>"textembedding-gecko"}
[π§ ] [v1/3] summary_embedding_description: {:ricc_notes=>"[embed-v3] Fixed on 9oct24. Only seems incompatible at first glance with embed v1.", :llm_project_id=>"unavailable possibly not using Vertex", :llm_dimensions=>nil, :article_size=>578, :poly_field=>"summary", :llm_embeddings_model_name=>"textembedding-gecko"}
[π§ ] As per bug https://github.com/palladius/gemini-news-crawler/issues/4 we can state this article belongs to titile/summary version: v3 (very few articles updated on 9oct24)
πΏarticle.to_s
------------------------------ Title: Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct Summary: I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments. [content] empty [/content] PublishedDate: 2024-03-27 Category: Technology NewsPaper: Ruby Flow
"title"=>"Micro benchmarking value objects in Ruby: Data.define vs Struct vs OpenStruct",
"summary"=>" I did a series of benchmarks between Data class, Struct, and OpenStruct testing, creating new objects and accessing attributes. The tests consider keyword arguments and not positional arguments. ",
"content"=>"",
"author"=>nil,
"link"=>"https://rubyflow.com/p/qxn9yf-micro-benchmarking-value-objects-in-ruby-datadefine-vs-struct-vs-openstruct",
"published_date"=>Wed, 27 Mar 2024 15:57:41.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyflow.com/p/qxn9yf-micro-benchmarking-value-objects-in-ruby-datadefine-vs-struct-vs-openstruct",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Mon, 01 Apr 2024 20:13:43.929620000 UTC +00:00,
"updated_at"=>Mon, 21 Oct 2024 18:03:44.508461000 UTC +00:00,
"newspaper"=>"Ruby Flow",
"macro_region"=>"Technology"}