Your Trusted B2B Sourcing Platform About | Help | Sign In | Post Request
Buying Guide

How to Calculate CNC Machining Cost Per Part: A Complete Sourcing Guide for International Buyers

Introduction: Why an Accurate Cost-Per-Part Model Matters

When sourcing CNC machined parts from China, the difference between a profitable order and a costly mistake often comes down to how well you understand the true cost per part. International buyers frequently receive quotes that vary by 30–50% for the same component, leaving them uncertain whether they are overpaying or walking into a quality trap. A reliable cnc machining cost per part calculator—whether a spreadsheet, a software tool, or a well-structured RFQ—helps you break down every cost element, compare supplier quotes on an apples-to-apples basis, and negotiate from a position of knowledge. This guide gives you a complete breakdown of CNC machining costs, practical formulas, and red flags to watch when sourcing from Chinese manufacturers.

Wide view of an empty industrial warehouse with visible cranes and metal structures. (Photo: Pixabay / Pexels)

Key Cost Components in CNC Machining

To calculate the cost per part accurately, you must understand the five major cost blocks that every CNC machine shop uses to build its quote. These are: material, machine hour rate, labor, tooling and setup, and overhead & profit. Let's examine each in detail.

1. Material Cost

Material cost is usually the most straightforward element. It depends on the raw material type (aluminum 6061, stainless steel 304, etc.), the required quantity (often purchased in standard bar or plate sizes), and the current market price per kilogram. For example, aluminum 6061 typically costs around $2.5–$3.5 per kg, while stainless steel 304 ranges from $3.5–$5 per kg. However, the actual material used per part is not the final part weight—it includes the raw stock size before machining. A part that weighs 0.2 kg after machining might require a 0.5 kg block, so the material cost should be based on the raw block volume.

Formula: Material Cost per Part = Raw Material Weight × Price per kg + Waste Disposal Cost (if any).

2. Machine Hour Rate

Machine hour rate is the cost of running a CNC machine for one hour. This includes depreciation, electricity, maintenance, and the machine's capital cost. In China, typical hourly rates range from $8–$15 for 3-axis CNC milling machines, $15–$25 for 4/5-axis machines, and $20–$35 for CNC turning centers with live tooling. The rate varies based on machine precision, size, and automation level. To calculate the machining cost per part, you need the cycle time (the time to machine one part) in hours, then multiply by the hourly rate.

Formula: Machining Cost per Part = Cycle Time (hours) × Machine Hour Rate.

3. Labor Cost

Labor covers the operator, programmer, and quality inspector time. In China, skilled CNC operators earn $3–$6 per hour, and programmers $8–$15 per hour. For a simple part, labor might add $0.5–$2 per part; for complex parts with manual deburring or inspection, it can be higher. Labor is often included in the machine hour rate or listed separately as a setup/operation fee.

4. Tooling and Setup

Tooling costs include cutting tools, fixtures, and any custom jigs. For standard parts, this is a one-time cost amortized over the order quantity. For example, a custom fixture might cost $200–$500, and if you order 100 parts, that adds $2–$5 per part. Setup cost is the time to prepare the machine for production, usually charged as a flat fee per order (e.g., $50–$150 per setup). For small batches, setup cost dominates; for large batches, it becomes negligible.

5. Overhead and Profit

Overhead covers factory rent, management, quality systems, and administrative costs. In China, overhead typically adds 10–20% to the subtotal. Profit margins for Chinese CNC shops range from 5–15%. The final quote includes these, so when comparing quotes, ensure you understand what overhead percentage is included.

How to Use a CNC Machining Cost Per Part Calculator

A cnc machining cost per part calculator is a tool that automates the above formulas. You input material, dimensions, quantity, cycle time, and hourly rate, and the calculator outputs the cost per part. Here's a step-by-step approach to using one effectively:

  1. Define the raw material: Select the material grade and enter the current price per kg.
  2. Estimate raw stock size: Use the bounding box of your part (length × width × height) plus a 3–5 mm allowance for machining stock.
  3. Estimate cycle time: Use CAM software simulation or ask the supplier for a time estimate. If you don't have this, use a rule of thumb: simple parts 5–10 minutes, medium complexity 10–30 minutes, complex parts 30–60+ minutes.
  4. Input machine rate: Use the typical rate for the required machine type.
  5. Add tooling and setup: Divide the total tooling cost by order quantity, then add the setup cost per part (setup cost ÷ quantity).
  6. Apply overhead and profit: Add 15–25% to cover overhead and profit.

Let's walk through a real example using a part from our directory: the Aluminum Rail Mounting Plate. Assume it's made of 6061 aluminum, dimensions 200×100×10 mm, order quantity 500. Raw stock: 205×105×15 mm = 0.322 kg, at $3/kg = $0.97. Cycle time: 12 minutes = 0.2 hours, at $12/hour = $2.40. Tooling: $300 fixture ÷ 500 = $0.60, setup $100 ÷ 500 = $0.20. Subtotal = $0.97 + $2.40 + $0.60 + $0.20 = $4.17. Add 20% overhead/profit = $5.00 per part. This matches the observed price range for similar parts (2.8–12 USD).

Close-up of a laser cutter operating in an industrial setting in Ankara, Türkiye. (Photo: Cemrecan Yurtman / Pexels)

Real-World Price Ranges from Our Directory

To give you a benchmark, our directory currently lists 1 verified supplier and 4 products in this category. The observed unit price range for these parts is $2.8 to $12, depending on complexity and material. Here is a breakdown of the actual products:

ProductMaterialTypical Price Range (USD)
Automotive Control Arm BracketSteel$8–$12
Construction Steel Hinge BracketSteel$6–$10
Aluminum Rail Mounting PlateAluminum$3–$6
Heavy-Duty Steel Locking BracketSteel$7–$11

These prices include material, machining, and standard finishing. Use them as a sanity check when evaluating quotes.

Common Pricing Traps and Red Flags

Even with a calculator, you can fall into traps if you don't watch for these red flags:

  • Unrealistically low quotes: If a quote is 30% below the average, the supplier may be using lower-grade material, skipping surface treatment, or cutting corners on inspection. Always ask for material certificates and QA reports.
  • Hidden tooling costs: Some suppliers quote a low unit price but add a high tooling fee later. Ensure the quote itemizes tooling and setup separately.
  • Vague cycle time estimates: If the supplier can't provide a cycle time breakdown, they may be padding the hours. Ask for the machine hour rate and cycle time.
  • Exchange rate fluctuation: Quotes in USD can be affected by currency swings. Confirm the quote is fixed for a certain period (e.g., 30 days).
  • Shipping and duties: The cost per part should include freight, insurance, and customs duties if you want a true landed cost. Many buyers forget these, leading to budget overruns.

Questions to Ask Your Chinese Supplier

To get accurate quotes and avoid surprises, ask these questions before placing an order:

  1. What is your machine hour rate for the required machine type? Can you provide a cycle time estimate from your CAM software?
  2. What material grade and supplier do you use? Can you provide a material certificate (EN 10204 3.1)?
  3. How do you handle tooling costs? Is the tooling fee amortized into the unit price or charged separately?
  4. What is your setup fee per order? Is it the same for repeat orders?
  5. What surface treatment is included in the quote? (e.g., anodizing, powder coating, passivation)
  6. Do you include inspection reports (CMM, dimensional) in the price?
  7. What is your lead time and how do you handle delays?
  8. Can you provide a breakdown of material, machining, and overhead costs?

Practical Checklists for Sourcing

Pre-Quotation Checklist

  • Define part specifications: material, dimensions, tolerances, surface finish.
  • Estimate annual quantity and order frequency.
  • Prepare a detailed 2D drawing or 3D model with GD&T.
  • Set a target cost per part based on your budget and market research.

Supplier Evaluation Checklist

  • Verify certifications: ISO 9001, IATF 16949 (for automotive), etc.
  • Check factory capabilities: number of CNC machines, max part size, materials processed.
  • Ask for customer references and sample parts.
  • Request a quote breakdown using your cost calculator template.
  • Evaluate communication responsiveness and technical competence.

Post-Award Checklist

  • Sign a quality agreement (inspection standards, tolerances).
  • Define payment terms: typically 30% deposit, 70% before shipment.
  • Arrange third-party inspection before shipment.
  • Confirm packaging and shipping terms (Incoterms).

Design Optimization to Lower Cost Per Part

Your part design significantly impacts the cost per part. Here are simple ways to reduce machining time and material waste:

  • Reduce machining depth: Deeper cuts require more passes and longer cycle times.
  • Avoid tight tolerances unless necessary: Tolerances of ±0.1 mm are easier than ±0.01 mm; the latter may require extra finishing operations.
  • Minimize internal corners: Sharp internal corners require special tools or EDM; use radii of at least 1 mm.
  • Use standard stock sizes: Design parts to fit standard bar or plate dimensions to minimize material waste.
  • Simplify features: Fewer holes, threads, and complex contours reduce machining time.

By applying these tips, you can often reduce the cost per part by 10–20%.

Conclusion

Mastering the cnc machining cost per part calculator is essential for international buyers sourcing from China. By breaking down material, machine, labor, tooling, and overhead, you can compare quotes transparently and avoid pricing traps. Use the real-world price ranges from our directory as benchmarks, ask the right questions, and optimize your part design. With this knowledge, you'll negotiate better deals and build a reliable supply chain.

Ready to source CNC machined parts? Our directory lists verified suppliers with transparent pricing. Start comparing quotes today.

Ready to source from verified suppliers? Get free quotes and compare offers within 24 hours.

Frequently Asked Questions

How accurate is a CNC machining cost per part calculator?

A CNC machining cost per part calculator is as accurate as the inputs you provide. If you enter precise material costs, cycle times, and machine rates, it can give you a reliable estimate. However, for exact quotes, you should always request a detailed breakdown from the supplier. Use the calculator as a benchmark to compare quotes and identify outliers.

Why do Chinese suppliers quote such different prices for the same part?

Price differences arise from variations in material quality, machine hour rates, overhead, tooling amortization, and profit margins. Some suppliers may quote lower to win your business but then add hidden costs later. Our directory shows a price range of $2.8–$12 for similar parts, so always compare itemized quotes.

What is the minimum order quantity (MOQ) for CNC machining in China?

MOQs vary by supplier. Many Chinese CNC shops accept low MOQs (e.g., 10–50 pieces) for prototyping, but the unit cost will be higher due to setup and tooling amortization. For production runs, MOQs of 100–500 are common. Always ask about MOQ and how it affects the cost per part.

Ready to Get Your CNC Parts Made in China

Get matched with verified suppliers who can meet your exact specifications.

Get Free Quotes
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-12 16:24:01 HTTP/2.0 GET : https://cnc-parts-china.com/guides/how-to-calculate-cnc-machining-cost-per-part-a-complete-sourcing-guide-for-international-buyers
  2. 运行时间 : 0.330076s [ 吞吐率:3.03req/s ] 内存消耗:5,222.74kb 文件加载:153
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=b443de1c1c5f9e74163fd2e27dc6d5d2
  1. /www/wwwroot/www.cnc-parts-china.com/public/index.php ( 0.79 KB )
  2. /www/wwwroot/www.cnc-parts-china.com/vendor/autoload.php ( 0.75 KB )
  3. /www/wwwroot/www.cnc-parts-china.com/vendor/composer/autoload_real.php ( 1.63 KB )
  4. /www/wwwroot/www.cnc-parts-china.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /www/wwwroot/www.cnc-parts-china.com/vendor/composer/ClassLoader.php ( 15.99 KB )
  6. /www/wwwroot/www.cnc-parts-china.com/vendor/composer/autoload_static.php ( 6.03 KB )
  7. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /www/wwwroot/www.cnc-parts-china.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  14. /www/wwwroot/www.cnc-parts-china.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /www/wwwroot/www.cnc-parts-china.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /www/wwwroot/www.cnc-parts-china.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 0.99 KB )
  17. /www/wwwroot/www.cnc-parts-china.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier.composer.php ( 0.10 KB )
  18. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /www/wwwroot/www.cnc-parts-china.com/vendor/symfony/var-dumper/VarDumper.php ( 3.73 KB )
  20. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  21. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  22. /www/wwwroot/www.cnc-parts-china.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  23. /www/wwwroot/www.cnc-parts-china.com/app/provider.php ( 0.19 KB )
  24. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Http.php ( 6.22 KB )
  25. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  26. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  27. /www/wwwroot/www.cnc-parts-china.com/app/common.php ( 0.90 KB )
  28. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/helper.php ( 18.77 KB )
  29. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Config.php ( 5.93 KB )
  30. /www/wwwroot/www.cnc-parts-china.com/config/app.php ( 0.95 KB )
  31. /www/wwwroot/www.cnc-parts-china.com/config/cache.php ( 0.78 KB )
  32. /www/wwwroot/www.cnc-parts-china.com/config/console.php ( 1.07 KB )
  33. /www/wwwroot/www.cnc-parts-china.com/config/cookie.php ( 0.56 KB )
  34. /www/wwwroot/www.cnc-parts-china.com/config/database.php ( 2.13 KB )
  35. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  36. /www/wwwroot/www.cnc-parts-china.com/config/filesystem.php ( 0.61 KB )
  37. /www/wwwroot/www.cnc-parts-china.com/config/lang.php ( 0.91 KB )
  38. /www/wwwroot/www.cnc-parts-china.com/config/log.php ( 1.35 KB )
  39. /www/wwwroot/www.cnc-parts-china.com/config/middleware.php ( 0.19 KB )
  40. /www/wwwroot/www.cnc-parts-china.com/config/route.php ( 2.27 KB )
  41. /www/wwwroot/www.cnc-parts-china.com/config/session.php ( 0.69 KB )
  42. /www/wwwroot/www.cnc-parts-china.com/config/trace.php ( 0.34 KB )
  43. /www/wwwroot/www.cnc-parts-china.com/config/view.php ( 0.82 KB )
  44. /www/wwwroot/www.cnc-parts-china.com/app/event.php ( 0.25 KB )
  45. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Event.php ( 7.77 KB )
  46. /www/wwwroot/www.cnc-parts-china.com/app/service.php ( 0.13 KB )
  47. /www/wwwroot/www.cnc-parts-china.com/app/AppService.php ( 0.26 KB )
  48. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  49. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  50. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  51. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  52. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  53. /www/wwwroot/www.cnc-parts-china.com/vendor/services.php ( 0.15 KB )
  54. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  55. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  56. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  57. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  58. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  59. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  60. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  61. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  62. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  63. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  64. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  65. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  66. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.20 KB )
  68. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.75 KB )
  69. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.30 KB )
  72. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  73. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  74. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  75. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  76. /www/wwwroot/www.cnc-parts-china.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /www/wwwroot/www.cnc-parts-china.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  78. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  79. /www/wwwroot/www.cnc-parts-china.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  80. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/helper/Arr.php ( 17.45 KB )
  81. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  82. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.02 KB )
  83. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  84. /www/wwwroot/www.cnc-parts-china.com/app/Request.php ( 0.09 KB )
  85. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Request.php ( 54.64 KB )
  86. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/traits/UrlHandler.php ( 6.05 KB )
  87. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/traits/DomainHandler.php ( 5.49 KB )
  88. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/traits/HttpMethodHandler.php ( 4.74 KB )
  89. /www/wwwroot/www.cnc-parts-china.com/app/middleware.php ( 0.30 KB )
  90. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /www/wwwroot/www.cnc-parts-china.com/app/middleware/InstallCheck.php ( 0.82 KB )
  98. /www/wwwroot/www.cnc-parts-china.com/app/middleware/Maintenance.php ( 1.64 KB )
  99. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  100. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.73 KB )
  101. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 53.74 KB )
  102. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  103. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  104. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  105. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.07 KB )
  106. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  107. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/Query.php ( 15.97 KB )
  108. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  109. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  110. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  111. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  112. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  113. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  114. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  115. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  116. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  117. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  118. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/log/driver/File.php ( 6.10 KB )
  119. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  120. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  121. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  122. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  123. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.74 KB )
  124. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  125. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.41 KB )
  126. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/Rule.php ( 27.49 KB )
  127. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  128. /www/wwwroot/www.cnc-parts-china.com/route/admin.php ( 11.49 KB )
  129. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  130. /www/wwwroot/www.cnc-parts-china.com/route/app.php ( 3.73 KB )
  131. /www/wwwroot/www.cnc-parts-china.com/route/install.php ( 0.59 KB )
  132. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  133. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 11.32 KB )
  134. /www/wwwroot/www.cnc-parts-china.com/app/controller/content/Guide.php ( 1.71 KB )
  135. /www/wwwroot/www.cnc-parts-china.com/app/controller/front/BaseFrontController.php ( 70.19 KB )
  136. /www/wwwroot/www.cnc-parts-china.com/app/BaseController.php ( 6.06 KB )
  137. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  138. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/facade/Config.php ( 1.37 KB )
  139. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  140. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/facade/Session.php ( 1.79 KB )
  141. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  142. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/Express.php ( 1.53 KB )
  143. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-orm/src/db/Raw.php ( 1.30 KB )
  144. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Response.php ( 9.07 KB )
  145. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  146. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  147. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  148. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  149. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  150. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  151. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  152. /www/wwwroot/www.cnc-parts-china.com/runtime/temp/7ca10c289ae36b7629e662dcf2e3aff0.php ( 14.04 KB )
  153. /www/wwwroot/www.cnc-parts-china.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.012069s ] mysql:host=127.0.0.1;port=3306;dbname=cncpartsch;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `kt_system_config` [ RunTime:0.002722s ]
  3. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'maintenance_mode' LIMIT 1 [ RunTime:0.000627s ]
  4. SHOW TABLES LIKE 'kt_site' [ RunTime:0.057840s ]
  5. SHOW FULL COLUMNS FROM `kt_site` [ RunTime:0.024194s ]
  6. SELECT `favicon` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001558s ]
  7. SHOW TABLES LIKE 'kt_system_config' [ RunTime:0.001081s ]
  8. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'site_favicon' LIMIT 1 [ RunTime:0.000414s ]
  9. SELECT `logo` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000296s ]
  10. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'site_logo' LIMIT 1 [ RunTime:0.000240s ]
  11. SELECT `name` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000313s ]
  12. SELECT * FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000372s ]
  13. SELECT `config_value`,`config_key` FROM `kt_system_config` WHERE `config_key` IN ('site_name','site_domain','site_subtitle','site_description','site_logo','site_favicon','site_keywords','seo_home_title','seo_home_description','seo_home_keywords','contact_phone','contact_wechat','icp_code') [ RunTime:0.000397s ]
  14. SHOW FULL COLUMNS FROM `kt_category` [ RunTime:0.001430s ]
  15. SHOW COLUMNS FROM `kt_category` [ RunTime:0.001165s ]
  16. SELECT * FROM `kt_category` WHERE `parent_id` = 0 AND `site_id` = 1 AND `status` = 1 ORDER BY `sort` DESC,`id` ASC LIMIT 5 [ RunTime:0.002657s ]
  17. SHOW FULL COLUMNS FROM `kt_news` [ RunTime:0.004415s ]
  18. SELECT * FROM `kt_news` WHERE `site_id` = 1 AND `slug` = 'how-to-calculate-cnc-machining-cost-per-part-a-complete-sourcing-guide-for-international-buyers' AND `content_type` = 'buying_guide' AND `publish_status` = 'published' LIMIT 1 [ RunTime:0.002521s ]
  19. UPDATE `kt_news` SET `views` = `views` + 1 WHERE `id` = 222 [ RunTime:0.028107s ]
  20. SHOW FULL COLUMNS FROM `kt_news_data` [ RunTime:0.012910s ]
  21. SELECT * FROM `kt_news_data` WHERE `news_id` = 222 LIMIT 1 [ RunTime:0.000703s ]
  22. SELECT * FROM `kt_news` WHERE `site_id` = 1 AND `publish_status` = 'published' AND `category_id` = 80 AND `id` <> 222 AND `content_type` IN ('article','buying_guide','comparison','case_study') ORDER BY content_type = 'buying_guide' DESC,`id` DESC LIMIT 8 [ RunTime:0.001139s ]
0.354251s