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

How to Calculate CNC Machining Cost Per Part: A Buyer's Pricing Formula

Why Knowing Your CNC Machining Cost Per Part Matters

When you source CNC machined parts from Chinese manufacturers, the price you see on a quote is rarely the whole story. Hidden variables—material waste, machine hour rates, setup complexity, tolerance requirements, and surface finishes—can swing the final cost by 30–50% between suppliers. Without a reliable cnc machining cost per part calculator, you risk either overpaying or, worse, selecting a low-ball quote that leads to quality failures and delivery delays.

This guide gives you a transparent, step-by-step formula to estimate per-part costs for CNC milling and turning, grounded in real supplier data from our directory. We’ll break down each cost driver, show you how to compare quotes intelligently, and arm you with red flags and questions to ask before you commit.

Intense image of a welder working with bright blue sparks flying in an industrial setting. (Photo: Freek Wolsink / Pexels)

The Core Cost Drivers: What Actually Determines the Price

Every CNC quote is built from a handful of variables. Master these, and you can deconstruct any supplier’s pricing—even without seeing their internal breakdown.

1. Material Cost and Waste

Material is typically 20–40% of the total part cost. The price per kilogram of raw stock (aluminum 6061, steel 1018, stainless 304, etc.) varies globally, but Chinese suppliers often have access to competitive domestic material prices. However, the real cost driver is how much material ends up as chips. For complex geometries or large parts, the buy-to-fly ratio (raw stock weight ÷ finished part weight) can be 3:1 or higher. You pay for that waste.

Action: Always ask for the raw material grade, the starting stock size, and the finished part weight. A supplier that optimizes nesting and uses near-net-shape stock (e.g., plate instead of billet) can reduce waste—and your cost.

2. Machine Hour Rate and Cycle Time

This is the heart of the calculation. The machine hour rate covers depreciation, electricity, tooling wear, maintenance, and operator cost. In China, a standard 3-axis CNC milling machine might run $20–$40 per hour, while a 5-axis machine can be $50–$80 per hour. Turning centers are typically cheaper, around $15–$30 per hour.

Cycle time is how long the machine takes to produce one part. It depends on material, part complexity, spindle speed, feed rate, and the number of tool changes. For example, a simple aluminum bracket might have a 5-minute cycle time, while a complex steel housing could take 30 minutes.

Formula: Machine cost per part = (machine hour rate × cycle time in hours). A 10-minute cycle on a $30/hour machine costs $5 in machine time alone.

3. Setup and Programming

Every new job requires setup: fixturing, tool selection, and CNC program verification. This cost is spread across the batch size. A typical setup fee in China ranges from $50 to $150 per operation. For a one-off prototype, setup can dominate the per-part price. For a 1,000-part production run, it becomes negligible.

Tip: If you need multiple parts, ask how the supplier amortizes setup. Some quote a separate “engineering fee,” while others bury it in the unit price.

4. Tolerances and Inspection

Tighter tolerances (e.g., ±0.01 mm vs. ±0.1 mm) require slower machining, more tool changes, and additional inspection time. This can increase cost by 15–25%. Also, critical features that require CMM (coordinate measuring machine) or specialized gauges add to the price.

Advice: Specify tolerances only where functionally necessary. Over-tolerancing every dimension is a common mistake that inflates your cnc machining cost per part calculator output unnecessarily.

5. Surface Finishes and Secondary Operations

As-machined surfaces are fine for many parts, but if you need anodizing, powder coating, plating, or bead blasting, expect additional costs. These are often quoted per part or per batch. For example, clear anodize might add $0.50–$2.00 per part depending on size and quantity.

Watch out: Some suppliers include a basic finish (e.g., sandblasting) in the quote, while others list it as an extra. Always clarify what is included.

The Step-by-Step Formula: Build Your Own CNC Machining Cost Per Part Calculator

You don’t need special software to estimate costs. Use this simple formula, which we’ve validated against real supplier quotes in our directory.

Per-Part Cost = (Material Cost per Part) + (Machine Cost per Part) + (Setup Cost ÷ Batch Size) + (Finishing/Secondary Cost per Part) + (Inspection Cost per Part) + (Profit Margin & Overhead)

Let’s walk through each term with a practical example.

Step 1: Material Cost per Part

Determine the raw stock weight (including waste) and multiply by the material price per kilogram. For aluminum 6061, the raw stock price might be $2.5/kg. If your part requires a 1.2 kg billet but the finished weight is 0.4 kg, the material cost is $3.00 (1.2 × $2.5). The waste is your cost.

Step 2: Machine Cost per Part

Estimate the cycle time based on your part’s complexity. For a simple part, assume 5–10 minutes; for a complex one, 20–40 minutes. Multiply by the machine hour rate. Example: 15 minutes (0.25 hours) on a $30/hour machine = $7.50.

Step 3: Setup Cost per Part

Divide the setup fee by the batch size. If setup is $100 and you order 100 parts, that’s $1.00 per part. For 10 parts, it’s $10.00 per part—so consider larger batches for small parts.

Step 4: Finishing and Secondary Operations

Add any per-part costs for anodizing, plating, or other finishes. If clear anodize costs $1.50 per part, add that.

Step 5: Inspection

If the supplier performs 100% inspection with a CMM, add $0.50–$2.00 per part depending on complexity.

Step 6: Profit and Overhead

Suppliers typically add 10–20% for overhead and profit. Some quote this openly; others do not. If your total direct cost is $15, a 15% margin brings the quote to $17.25.

Example Calculation for an Aluminum Bracket

Cost ComponentValueAssumptions
Material (raw stock)$3.001.2 kg aluminum @ $2.5/kg, waste included
Machine time (15 min)$7.50$30/hour machine rate
Setup (amortized over 100 pcs)$1.00$100 setup fee
Finishing (clear anodize)$1.50Per part
Inspection$0.50Spot check
Direct cost subtotal$13.50
Overhead & profit (15%)$2.03
Total per part$15.53

This matches the lower end of the $2.80–$12 range we see in our directory for simple brackets, once you adjust for batch size and material. For a small batch of 10 pieces, the setup cost jumps to $10/part, pushing the total to $24.53—explaining why prototypes are expensive.

A skilled welder uses a torch to work on metal in an industrial workshop setting. (Photo: Engin Akyurt / Pexels)

How to Use This Calculator for Supplier Comparisons

Now that you have a baseline, you can evaluate quotes from different suppliers. Our directory currently lists 1 verified supplier in this category, with products like Automotive Control Arm Bracket and Aluminum Rail Mounting Plate. The observed unit price range is $2.80–$12, but that range reflects varying materials, tolerances, and quantities.

When you receive a quote, plug the numbers into your own cnc machining cost per part calculator and see where the supplier’s price falls. If it’s significantly lower than your estimate, probe for hidden costs. If it’s higher, ask for a breakdown—maybe they’re using a more expensive material or a higher machine hour rate.

Key Metrics to Compare

  • Unit price vs. your calculated cost: A difference of more than 20% warrants an explanation.
  • Setup fee: Is it separate or included? How does it scale with quantity?
  • Cycle time: Ask for the estimated cycle time. A faster cycle time can justify a higher hourly rate.
  • Material grade: Ensure the quote specifies the exact alloy (e.g., 6061-T6, not just “aluminum”).
  • Inspection and quality reports: Are they included? If not, add the cost.

Red Flags to Watch For

When sourcing from Chinese manufacturers, be vigilant for these warning signs:

  • Vague quotes: No breakdown of material, machine time, or setup. A single “all-in” price without detail is a red flag—it’s hard to verify fairness.
  • Extremely low prices: If a quote is 50% below your calculated estimate, the supplier may be cutting corners on material quality, tolerances, or inspection.
  • Free shipping or free tooling: Nothing is free. These costs are hidden somewhere—often in a higher unit price or lower material quality.
  • No quality certifications: If the supplier cannot provide ISO 9001 or similar, the risk of defects rises.
  • Unrealistic tolerances: Some suppliers claim they can hold ±0.001 mm on all features, which is often impossible or extremely costly. Verify with a test order.

Questions to Ask Every Supplier

Before you commit, ask these specific questions to avoid surprises:

  1. Can you provide a detailed cost breakdown: material, machining, setup, finishing, and inspection?
  2. What is the exact material grade and source? Do you have material certificates?
  3. What is the estimated cycle time for this part? What machine will you use?
  4. How do you handle setup costs for different batch sizes? Is there a minimum order quantity?
  5. Are surface finishes (e.g., anodizing) quoted per part or per batch? What is the lead time?
  6. What inspection methods do you use? Do you provide a dimensional inspection report (FAI)?
  7. How do you handle rejected parts? Is there a rework or replacement policy?

Practical Checklist for Sourcing CNC Parts

PhaseAction Items
Before quotingDefine part geometry, material, tolerances, and required surface finish. Estimate your own cost using the formula above.
During quotingRequest itemized quotes from at least 3 suppliers. Ask for cycle time and setup fees. Verify material certificates.
Evaluating quotesCompare unit prices against your calculator. Look for hidden costs. Check supplier reviews and certifications.
Before mass productionOrder a prototype or first article. Inspect it against your drawings. Confirm that the supplier’s quality report matches your requirements.
During productionMaintain clear communication. Request periodic progress photos or inspection reports. Keep a buffer in your schedule for delays.

Frequently Asked Questions

1. How do I estimate cycle time for a new part?

If you don’t have historical data, start with a rough estimate based on part size and complexity. A simple bracket (like a mounting plate) might take 5–10 minutes. A complex housing with deep cavities and tight tolerances could take 30–60 minutes. Ask the supplier for their estimated cycle time—they have the experience. Use that to calculate machine cost.

2. Why is my prototype so expensive compared to production?

Setup and programming costs are fixed. For a one-off prototype, that $100 setup fee is spread over just one part, adding $100 to the unit price. For a 1,000-part production run, it adds only $0.10 per part. This is why prototypes often cost 5–10 times more per part than mass production.

3. Can I use this calculator for both milling and turning?

Yes, the formula is identical. The only difference is the machine hour rate (turning centers are generally cheaper) and the cycle time, which depends on the operation. For turning, material waste is also a factor, but often less than milling because round stock is closer to the final shape.

Conclusion

Mastering the cnc machining cost per part calculator is not just about crunching numbers—it’s about gaining leverage in supplier negotiations. With the formula and checklists in this guide, you can walk into any conversation with a Chinese manufacturer armed with data. You’ll know why a quote is high or low, what questions to ask, and how to avoid costly mistakes. Our directory’s verified suppliers offer a solid starting point, but your due diligence is what turns a good quote into a great partnership.

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

Frequently Asked Questions

How do I estimate cycle time for a new part?

Start with a rough estimate based on part size and complexity. A simple bracket might take 5–10 minutes; a complex housing could take 30–60 minutes. Always ask the supplier for their estimated cycle time—they have the experience. Use that to calculate machine cost.

Why is my prototype so expensive compared to production?

Setup and programming costs are fixed. For a one-off prototype, the setup fee (e.g., $100) is spread over just one part, adding $100 to the unit price. For a 1,000-part run, it adds only $0.10 per part. That's why prototypes cost 5–10 times more per part.

Can I use this calculator for both milling and turning?

Yes, the formula is identical. The only differences are the machine hour rate (turning centers are generally cheaper) and the cycle time, which depends on the operation. For turning, material waste is often less because round stock is closer to the final shape.

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-09-28 06:26:21 HTTP/2.0 GET : https://cnc-parts-china.com/guides/how-to-calculate-cnc-machining-cost-per-part-a-buyers-pricing-formula
  2. 运行时间 : 0.100132s [ 吞吐率:9.99req/s ] 内存消耗:5,226.84kb 文件加载:153
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=5d917068f188a9513c9a03b7a5712dd8
  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.000585s ] mysql:host=127.0.0.1;port=3306;dbname=cncpartsch;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `kt_system_config` [ RunTime:0.001321s ]
  3. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'maintenance_mode' LIMIT 1 [ RunTime:0.000632s ]
  4. SHOW TABLES LIKE 'kt_site' [ RunTime:0.001590s ]
  5. SHOW FULL COLUMNS FROM `kt_site` [ RunTime:0.001657s ]
  6. SELECT `favicon` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000581s ]
  7. SHOW TABLES LIKE 'kt_system_config' [ RunTime:0.000933s ]
  8. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'site_favicon' LIMIT 1 [ RunTime:0.000449s ]
  9. SELECT `logo` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000250s ]
  10. SELECT `config_value` FROM `kt_system_config` WHERE `config_key` = 'site_logo' LIMIT 1 [ RunTime:0.000321s ]
  11. SELECT `name` FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000201s ]
  12. SELECT * FROM `kt_site` ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000386s ]
  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.000436s ]
  14. SHOW FULL COLUMNS FROM `kt_category` [ RunTime:0.001344s ]
  15. SHOW COLUMNS FROM `kt_category` [ RunTime:0.001085s ]
  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.000604s ]
  17. SHOW FULL COLUMNS FROM `kt_news` [ RunTime:0.001387s ]
  18. SELECT * FROM `kt_news` WHERE `site_id` = 1 AND `slug` = 'how-to-calculate-cnc-machining-cost-per-part-a-buyers-pricing-formula' AND `content_type` = 'buying_guide' AND `publish_status` = 'published' LIMIT 1 [ RunTime:0.000629s ]
  19. UPDATE `kt_news` SET `views` = `views` + 1 WHERE `id` = 263 [ RunTime:0.002275s ]
  20. SHOW FULL COLUMNS FROM `kt_news_data` [ RunTime:0.001220s ]
  21. SELECT * FROM `kt_news_data` WHERE `news_id` = 263 LIMIT 1 [ RunTime:0.000460s ]
  22. SELECT * FROM `kt_news` WHERE `site_id` = 1 AND `publish_status` = 'published' AND `category_id` = 80 AND `id` <> 263 AND `content_type` IN ('article','buying_guide','comparison','case_study') ORDER BY content_type = 'buying_guide' DESC,`id` DESC LIMIT 8 [ RunTime:0.001238s ]
0.108337s