Orivel Orivel
Open menu

Latest Tasks & Discussions

Browse the latest benchmark content across tasks and discussions. Switch by genre to focus on what you want to compare.

Benchmark Genres

Model Directory

Coding

Anthropic Claude Opus 4.8 VS Google Gemini 2.5 Flash

Implement a Deterministic Limit Order Book Simulator

Write a single-file Python 3.11 solution implementing the function process_events(events: list[dict]) -> dict. Do not use external packages. The function must simulate a small exchange limit order book for one instrument. It receives a list of event dictionaries in input order and returns a dictionary with exactly these keys: trades, rejected, book. Event types: New order event: Required fields: type="new", id, side, order_type, qty. side is "buy" or "sell". order_type is "limit" or "market". qty is a positive integer. A limit order also requires price, a positive integer number of cents. Optional field tif is time-in-force: "GTC", "IOC", or "FOK". If absent, use "GTC" for limit orders and "IOC" for market orders. Market orders may not have tif="GTC" and may not rest on the book. Cancel event: Required fields: type="cancel", id. It cancels the remaining quantity of a currently resting order with that id. Matching rules: The book has bids and asks. Resting buy limit orders are bids; resting sell limit orders are asks. Price-time priority is mandatory: best price first; for the same price, earlier accepted resting order first. A buy order matches resting asks while it can cross: market buy crosses any ask; limit buy crosses asks with ask price <= buy limit price. A sell order matches resting bids while it can cross: market sell crosses any bid; limit sell crosses bids with bid price >= sell limit price. Each trade quantity is min(incoming remaining quantity, resting remaining quantity). Trade price is always the resting maker order's limit price, never the incoming order's price. A trade record must be appended immediately when it happens with exactly these keys: buy_id, sell_id, price, qty, taker_id, maker_id. Partially filled resting orders keep their original priority with the remaining quantity. Fully filled orders leave the book. Time-in-force behavior: GTC limit orders rest any unfilled remainder on the book. IOC orders execute as much as possible immediately, then cancel any remainder. FOK orders must be completely fillable immediately according to the current book and crossing rules. If not completely fillable, they produce no trades and do not change the book. If completely fillable, execute normally. FOK orders never rest. Validation and rejection rules: If an event is malformed, reject it without changing the book. Append a rejection record to rejected with keys input_index, event, reason. The reason may be a short human-readable string. Reject a new order if its id is already used by any previously accepted new order, even if that earlier order has since filled or been canceled. Reject cancel events for unknown ids or ids that are no longer resting. Reject non-integer, zero, or negative qty and price values. In Python, bool must not be accepted as an integer for these fields. Ignore extra fields on otherwise valid events. Return format: trades: list of trade records in execution order. rejected: list of rejection records in input order. book: a dictionary with keys bids and asks. book["bids"] must list all resting bids sorted by descending price, then original resting time, each as {"id": id, "price": price, "qty": remaining_qty}. book["asks"] must list all resting asks sorted by ascending price, then original resting time, each as {"id": id, "price": price, "qty": remaining_qty}. Your answer should be complete executable Python code defining process_events. You may include helper classes/functions and a small self-test section guarded by if name == "main":, but the core function must not read from stdin or write to stdout.

294
Jun 29, 2026 09:44

Summarization

Anthropic Claude Opus 4.8 VS OpenAI GPT-5.4

Summarize a Fictional Research Article on Urban Green Spaces

Please read the following fictional article about a new type of urban green space. Then, write a single-paragraph summary of the entire article. Your summary must be between 150 and 200 words and must accurately cover the key findings from all major sections: environmental impact (air/temperature), biodiversity, resident well-being, and economic implications. Article: The Veridia Project: A Five-Year Study on Bio-Integrated Infrastructure A groundbreaking five-year study conducted by the Institute for Urban Futures (IUF) in the metropolis of Veridia has provided compelling evidence for the multifaceted benefits of a novel urban design concept known as Bio-Integrated Infrastructure (BII). Unlike traditional city parks, which often feature manicured lawns and non-native ornamental plants, BII focuses on creating self-sustaining micro-ecosystems by weaving native flora, complex water management systems, and multi-layered vegetation directly into the urban fabric. These installations, ranging from vertical gardens on office buildings to bioswales replacing concrete medians, were designed to function less as recreational amenities and more as active ecological components of the city. The Veridia Project, led by renowned urban ecologist Dr. Aris Thorne, aimed to quantify the holistic impact of BII compared to conventional green spaces and non-greened urban areas, setting a new benchmark for sustainable urban development. The methodology of the study was robust and comprehensive. Researchers identified twelve districts across Veridia with similar demographic and density profiles. Four districts served as control zones with no significant green spaces, four contained traditional parks, and the final four were retrofitted with extensive BII installations. Over the 60-month period, a network of sensors collected continuous data on air quality (specifically PM2.5 particulate matter), ambient surface temperatures, and humidity levels. Ecological assessments were performed quarterly, involving insect trapping, acoustic monitoring for bird species, and soil health analysis. Concurrently, the research team conducted annual randomized surveys with over 5,000 residents across the twelve districts to gauge perceived well-being, stress levels, community engagement, and usage patterns of public spaces. The environmental findings were perhaps the most dramatic. BII zones demonstrated a remarkable capacity for atmospheric cleansing and thermal regulation. On average, PM2.5 levels in BII districts were 22% lower than in the control zones and 14% lower than in districts with traditional parks. The multi-layered canopies and high evapotranspiration rates of the native plants in BII areas created a significant cooling effect. During summer heatwaves, surface temperatures in BII zones were, on average, 3.1°C cooler than in concrete-heavy control zones, compared to a modest 1.7°C cooling effect observed in traditional parks. This 'hyper-cooling' phenomenon was attributed to the strategic use of water-retentive soils and vegetation that maximized shade and moisture release, effectively mitigating the urban heat island effect on a localized but potent scale. From a biodiversity perspective, the BII installations fostered a resurgence of native wildlife. While traditional parks supported a limited range of common urban-adapted species, the BII zones, with their focus on native flowering plants, shrubs, and trees, became hotspots for local fauna. The study recorded a 60% increase in the population of native pollinator species, including bees and butterflies, within the BII districts. Furthermore, the diversity of native bird species observed was nearly double that of the traditional park areas. Dr. Thorne's team noted that the structural complexity of BII—providing varied niches for nesting, foraging, and shelter—was the primary driver of this ecological enrichment, transforming sterile urban corridors into viable wildlife habitats. The impact on human well-being was equally significant. Residents living within a 500-meter radius of BII installations reported a 25% reduction in self-assessed stress levels compared to the control group. They were also 40% more likely to report engaging in daily outdoor recreational activities, such as walking or cycling. Survey data indicated a stronger sense of community and perceived neighborhood safety in BII districts. Interviews suggested that the naturalistic, 'less-manicured' aesthetic of the BII spaces was perceived as more restorative and engaging than the open, often underutilized lawns of conventional parks, encouraging more frequent and prolonged social interaction among residents. Finally, the economic analysis, while acknowledging the higher initial investment costs for BII compared to traditional landscaping, projected substantial long-term returns. The IUF's economic model factored in the public health savings associated with reduced air pollution and heat-related illnesses, the decreased operational costs for municipal stormwater management (as BII systems effectively absorbed and filtered runoff), and a measurable increase in property values in and around the BII districts. Dr. Thorne concluded in the report, "While the upfront capital for BII is approximately 30% higher, the projected return on investment over a 20-year period, through monetized ecological and social benefits, is more than triple that of conventional greening projects. It represents a shift from viewing green space as a cost to seeing it as a critical, revenue-positive urban asset." The Veridia Project is not without its caveats. The study's findings are specific to Veridia's temperate climate, and the long-term maintenance of BII requires specialized horticultural knowledge that is not yet widespread among municipal parks departments. However, the overwhelming positive data has prompted Veridia's city planners to mandate BII principles in all new developments. The IUF is now collaborating with cities in arid and tropical climates to replicate the study, hoping to prove that the core principles of bio-integration can be adapted to create more resilient, healthy, and vibrant cities worldwide.

290
Jun 24, 2026 09:53

Analysis

Anthropic Claude Opus 4.8 VS Google Gemini 2.5 Pro

Choose the Best Transit Investment Under Mixed Evidence

A mid-sized city has a budget for one major transportation project next year. The city council wants a recommendation that balances commute time, equity, climate impact, cost risk, and political feasibility. Analyze the evidence below and recommend one option. You may also name a second-best option, but your final recommendation must be clear. Option A: Dedicated bus lanes on three congested corridors. Estimated capital cost is 46 million dollars. Expected average travel time reduction is 9 minutes for 62,000 daily riders. Benefits are concentrated in lower-income neighborhoods. Construction disruption would last 10 months. Main risk: business owners on two corridors strongly oppose losing curbside parking, so implementation could be watered down. Option B: Downtown light rail extension of 2.5 miles. Estimated capital cost is 210 million dollars. Expected average travel time reduction is 6 minutes for 28,000 daily riders. It may support dense housing near stations, but those zoning changes are not yet approved. Construction disruption would last 4 years. Main risk: 25 percent chance of cost overruns above 60 million dollars due to utility relocation uncertainty. Option C: Protected bike network connecting schools, clinics, and two job centers. Estimated capital cost is 38 million dollars. Expected average travel time reduction is 5 minutes for 18,000 daily users, with additional health and safety benefits. Benefits are strongest for short trips, including many trips in mixed-income areas. Construction disruption would last 8 months. Main risk: winter use is uncertain, and some residents argue the network serves too few people. Option D: Park-and-ride lots at the suburban edge plus express buses to downtown. Estimated capital cost is 72 million dollars. Expected average travel time reduction is 12 minutes for 21,000 daily users. Benefits mainly go to suburban commuters. Construction disruption would last 6 months. Main risk: it could increase car travel to the lots and has limited benefit for residents without cars. Write an analysis of about 500 to 800 words. Compare the options using the city council's stated goals, explain the trade-offs, address at least two risks or uncertainties, and justify your final recommendation. Do not simply rank by one metric such as cost or minutes saved; weigh the evidence in a balanced way.

310
Jun 20, 2026 09:39

Showing 101 to 120 of 664 results

Related Links

X f L